Fix PMD UnnecessaryFullyQualifiedName in PredicateUtils

This commit is contained in:
Gary Gregory 2024-05-22 08:35:00 -04:00
parent 3c7d821562
commit fe4fff6ab0
2 changed files with 4 additions and 3 deletions

View File

@ -34,6 +34,7 @@
<action issue="COLLECTIONS-853" type="fix" dev="aherbert" due-to="Claude Warren, Alex Herbert, Gary Gregory">Change LayerManager to use List and added generics to LayerdedBloomFilter #481.</action> <action issue="COLLECTIONS-853" type="fix" dev="aherbert" due-to="Claude Warren, Alex Herbert, Gary Gregory">Change LayerManager to use List and added generics to LayerdedBloomFilter #481.</action>
<action type="update" dev="ggregory" due-to="PMD, Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in CollectionUtils.</action> <action type="update" dev="ggregory" due-to="PMD, Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in CollectionUtils.</action>
<action type="update" dev="ggregory" due-to="PMD, Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in MapUtils.</action> <action type="update" dev="ggregory" due-to="PMD, Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in MapUtils.</action>
<action type="update" dev="ggregory" due-to="PMD, Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in PredicateUtils.</action>
<!-- UPDATE --> <!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot">Bump org.apache.commons:commons-parent from 67 to 69 #473.</action> <action type="update" dev="ggregory" due-to="Dependabot">Bump org.apache.commons:commons-parent from 67 to 69 #473.</action>
<action type="update" dev="ggregory" due-to="Dependabot">Bump tests commons-io:commons-io from 2.16.0 to 2.16.1 #475.</action> <action type="update" dev="ggregory" due-to="Dependabot">Bump tests commons-io:commons-io from 2.16.0 to 2.16.1 #475.</action>

View File

@ -179,7 +179,7 @@ public class PredicateUtils {
public static <T> Predicate<T> eitherPredicate(final Predicate<? super T> predicate1, public static <T> Predicate<T> eitherPredicate(final Predicate<? super T> predicate1,
final Predicate<? super T> predicate2) { final Predicate<? super T> predicate2) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
final Predicate<T> onePredicate = PredicateUtils.onePredicate(predicate1, predicate2); final Predicate<T> onePredicate = onePredicate(predicate1, predicate2);
return onePredicate; return onePredicate;
} }
@ -252,7 +252,7 @@ public class PredicateUtils {
* and have no parameters. If the input object is null, a * and have no parameters. If the input object is null, a
* PredicateException is thrown. * PredicateException is thrown.
* <p> * <p>
* For example, {@code PredicateUtils.invokerPredicate("isEmpty");} * For ePredicateUtils.invokerPredicate("isEmpty");}
* will call the {@code isEmpty} method on the input object to * will call the {@code isEmpty} method on the input object to
* determine the predicate result. * determine the predicate result.
* *
@ -308,7 +308,7 @@ public class PredicateUtils {
public static <T> Predicate<T> neitherPredicate(final Predicate<? super T> predicate1, public static <T> Predicate<T> neitherPredicate(final Predicate<? super T> predicate1,
final Predicate<? super T> predicate2) { final Predicate<? super T> predicate2) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
final Predicate<T> nonePredicate = PredicateUtils.nonePredicate(predicate1, predicate2); final Predicate<T> nonePredicate = nonePredicate(predicate1, predicate2);
return nonePredicate; return nonePredicate;
} }