Fix checkstyle warning.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2015-06-04 15:23:56 +00:00
parent 2d00ed4676
commit 7c99c6234c
1 changed files with 2 additions and 4 deletions

View File

@ -16,8 +16,6 @@
*/
package org.apache.commons.collections4.functors;
import static org.apache.commons.collections4.functors.NullPredicate.*;
import java.io.Serializable;
import org.apache.commons.collections4.Equator;
@ -50,7 +48,7 @@ public final class EqualPredicate<T> implements Predicate<T>, Serializable {
*/
public static <T> Predicate<T> equalPredicate(final T object) {
if (object == null) {
return nullPredicate();
return NullPredicate.nullPredicate();
}
return new EqualPredicate<T>(object);
}
@ -66,7 +64,7 @@ public final class EqualPredicate<T> implements Predicate<T>, Serializable {
*/
public static <T> Predicate<T> equalPredicate(final T object, final Equator<T> equator) {
if (object == null) {
return nullPredicate();
return NullPredicate.nullPredicate();
}
return new EqualPredicate<T>(object, equator);
}