Last active
September 14, 2018 08:23
-
-
Save sadikovi/208f51c58fca6ebfceb5d8896752a83a to your computer and use it in GitHub Desktop.
Issue #158 example
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
final class Example { | |
void /* test */ func() { | |
String a = "a"; | |
String b = "a" + b + "c()"; | |
Buffer buf = "test" + "new Buffer() {};"; | |
HashSet<String> test = new HashSet<String>(); | |
} | |
public int get_int() { | |
return 1; | |
} | |
public int[] getArray() { | |
return null; | |
} | |
public java.lang.String[][] /* test */ getArray() /* test */ throws Exception { | |
return null; | |
} | |
public int getInt() { | |
return null; | |
} | |
public a.b.c.A<B> getA() { | |
return null; | |
} | |
public /* test */ My<Integer> /* test */ getMy() { | |
return null; | |
} | |
public My<Integer, Integer> getMy() { | |
return null; | |
} | |
public My<java.lang.String> getMy(int /* test */ a) { | |
// something else | |
return null; | |
} | |
public Map<?, ?> getSome() { | |
return null; | |
} | |
public OrderedPair<java.lang.String, Box<Integer>> getOrder() { | |
a = a / "test"; | |
return null; | |
} | |
public <T extends Animal> T callFriend(String name, Class<T> type) { | |
return type.cast(friends.get(name)); | |
} | |
public static <K, V> boolean compare(Pair<K, V> p1, Pair<K, V> p2) { | |
return p1.getKey().equals(p2.getKey()) && | |
p1.getValue().equals(p2.getValue()); | |
} | |
static List<List<? extends Shape>> history = new ArrayList<List<Shape>>(); | |
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); | |
private My<String> t = new My<String>(); | |
private static final String a = "a"; | |
private static final String b = "a" + "a()"; | |
private static final String c = "a" + "\"" + "a();"; | |
private static final String d = "a" + a; | |
private static final String e = "a" + a + "a()"; | |
private static final String e = "a" + a + "a()"; | |
private static final String f = "a()"; | |
private static final String g = a + "a()" + a() + a + "a();" + ""; | |
private static final String h = a + "a();"; | |
private static final String h = a / "a();"; | |
Example(PopupWebView popupWebView) { | |
this.popupWebView = popupWebView; | |
} | |
} | |
class A<T extends A & B, String, Integer> | |
{ | |
HashMap<Integer, String> map = new HashMap<>(); | |
CodeMap<String, ? extends ArrayList> codemap; | |
C(Map<?, ? extends List<?>> m) {} | |
Map<Integer, String> method() {} | |
private Object otherMethod() { return null; } | |
Set<Map.Entry<K, V>> set1; | |
Set<java.util.List<K>> set2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment