Skip to content

Commit 4a52216

Browse files
committed
Rename internal constants
1 parent a6af715 commit 4a52216

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/apache/commons/lang3/function/Predicates.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
*/
2727
public 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
/**

0 commit comments

Comments
 (0)