aboutsummaryrefslogtreecommitdiff
path: root/guava/src/com/google/common/collect/Collections2.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava/src/com/google/common/collect/Collections2.java')
-rw-r--r--guava/src/com/google/common/collect/Collections2.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/guava/src/com/google/common/collect/Collections2.java b/guava/src/com/google/common/collect/Collections2.java
index 9cfc3bc18..4ed189754 100644
--- a/guava/src/com/google/common/collect/Collections2.java
+++ b/guava/src/com/google/common/collect/Collections2.java
@@ -93,7 +93,7 @@ public final class Collections2 {
return ((FilteredCollection<E>) unfiltered).createCombined(predicate);
}
- return new FilteredCollection<E>(checkNotNull(unfiltered), checkNotNull(predicate));
+ return new FilteredCollection<>(checkNotNull(unfiltered), checkNotNull(predicate));
}
/**
@@ -132,8 +132,7 @@ public final class Collections2 {
}
FilteredCollection<E> createCombined(Predicate<? super E> newPredicate) {
- return new FilteredCollection<E>(unfiltered, Predicates.<E>and(predicate, newPredicate));
- // .<E> above needed to compile in JDK 5
+ return new FilteredCollection<>(unfiltered, Predicates.and(predicate, newPredicate));
}
@Override
@@ -639,7 +638,7 @@ public final class Collections2 {
int j;
PermutationIterator(List<E> list) {
- this.list = new ArrayList<E>(list);
+ this.list = new ArrayList<>(list);
int n = list.size();
c = new int[n];
o = new int[n];