Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Add additional examples of generics with bounds for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Boersma committed Apr 11, 2020
1 parent 2479740 commit 2fa2863
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
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> {
}
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) {
}
}

0 comments on commit 2fa2863

Please sign in to comment.