This repository has been archived by the owner on Nov 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional examples of generics with bounds for testing.
- Loading branch information
Gerald Boersma
committed
Apr 11, 2020
1 parent
2479740
commit 2fa2863
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/test/java/info/leadinglight/umljavadoclet/generics/TestGenerics7.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package info.leadinglight.umljavadoclet.generics; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
|
||
// TODO Does not show the bounds for P on the diagram. | ||
public class TestGenerics7<P extends ArrayList> extends HashMap<String,P> { | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/java/info/leadinglight/umljavadoclet/generics/TestGenerics8.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package info.leadinglight.umljavadoclet.generics; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public class TestGenerics8<P extends ArrayList> extends HashMap<String,P> { | ||
public static class ListType {} | ||
// TODO Wildcards not displayed with bounds. | ||
public void addList(List<? extends ListType> list) { | ||
} | ||
} |