File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/apache/commons/lang3/function Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2626 */
2727public class Predicates {
2828
29- private static final Predicate <?> ALWAYS_TRUE = t -> true ;
30- private static final Predicate <?> ALWAYS_FALSE = t -> false ;
29+ private static final Predicate <?> TRUE = t -> true ;
30+ private static final Predicate <?> FALSE = t -> false ;
3131
3232 /**
3333 * Returns the Predicate singleton that always returns false.
@@ -38,7 +38,7 @@ public class Predicates {
3838 @ SuppressWarnings ("unchecked" )
3939 // method name cannot be "false".
4040 public static <T > Predicate <T > falsePredicate () {
41- return (Predicate <T >) ALWAYS_FALSE ;
41+ return (Predicate <T >) FALSE ;
4242 }
4343
4444 /**
@@ -50,7 +50,7 @@ public static <T> Predicate<T> falsePredicate() {
5050 @ SuppressWarnings ("unchecked" )
5151 // method name cannot be "true".
5252 public static <T > Predicate <T > truePredicate () {
53- return (Predicate <T >) ALWAYS_TRUE ;
53+ return (Predicate <T >) TRUE ;
5454 }
5555
5656 /**
You can’t perform that action at this time.
0 commit comments