Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix checkstyle warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683576 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
netomi committed Jun 4, 2015
1 parent 2d00ed4 commit 7c99c62
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand All @@ -66,7 +64,7 @@ public static <T> Predicate<T> equalPredicate(final T object) {
*/
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);
}
Expand Down

0 comments on commit 7c99c62

Please sign in to comment.