Java can infer types for <>

This commit is contained in:
Josh Soref committed 2019-02-21 00:33:38 -05:00
1 parent c0ee577183
commit 003e525b79
51 files changed
+58 -58

No files matched your search

+4 -4
View File
@@ -1035,7 +1035,7 @@ public class Util {
*/
@Nonnull
public static <T> List<T> fixNull(@CheckForNull List<T> l) {
return fixNull(l, Collections.<T>emptyList());
return fixNull(l, Collections.emptyList());
}
/**
@@ -1049,7 +1049,7 @@ public class Util {
*/
@Nonnull
public static <T> Set<T> fixNull(@CheckForNull Set<T> l) {
return fixNull(l, Collections.<T>emptySet());
return fixNull(l, Collections.emptySet());
}
/**
@@ -1063,7 +1063,7 @@ public class Util {
*/
@Nonnull
public static <T> Collection<T> fixNull(@CheckForNull Collection<T> l) {
return fixNull(l, Collections.<T>emptySet());
return fixNull(l, Collections.emptySet());
}
/**
@@ -1077,7 +1077,7 @@ public class Util {
*/
@Nonnull
public static <T> Iterable<T> fixNull(@CheckForNull Iterable<T> l) {
return fixNull(l, Collections.<T>emptySet());
return fixNull(l, Collections.emptySet());
}
/**