Apply "type inference for generic instance creation" Java 7 feature
Change-Id: Ia14802c903ca67b9d94dc6038d70b0e9644bc621
This commit is contained in:
@@ -33,7 +33,7 @@ public class AndPredicate<T> extends Predicate<T> {
|
||||
}
|
||||
|
||||
protected AndPredicate(final Collection<? extends Predicate<T>> that) {
|
||||
final ArrayList<Predicate<T>> t = new ArrayList<Predicate<T>>(that.size());
|
||||
List<Predicate<T>> t = new ArrayList<>(that.size());
|
||||
int c = 0;
|
||||
for (Predicate<T> p : that) {
|
||||
if (getClass() == p.getClass()) {
|
||||
@@ -67,7 +67,7 @@ public class AndPredicate<T> extends Predicate<T> {
|
||||
|
||||
@Override
|
||||
public Predicate<T> copy(final Collection<? extends Predicate<T>> children) {
|
||||
return new AndPredicate<T>(children);
|
||||
return new AndPredicate<>(children);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user