inference: ensure nested methods lift their bounds (IDEA-122681)

This commit is contained in:
Anna Kozlova
2014-03-24 12:49:41 +01:00
parent 86cf8fe4e7
commit 5bd221386d
3 changed files with 33 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
import java.util.Set;
import java.util.function.Supplier;
class IDEA122681 {
private static <E> Set<E> getSet(E element) {
return null;
}
private static <T> T getObject(Supplier<T> supplier) {
return null;
}
private static Object getObjectFromString(String string) {
return null;
}
private static void callGetSet() {
getSet(getObjectFromString(getObject(String ::new)));
}
}