We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f2c62 commit 4f6cae2Copy full SHA for 4f6cae2
src/main/java/ch/powerunit/extensions/exceptions/CommonsCollections4Helper.java
@@ -65,7 +65,6 @@ private CommonsCollections4Helper() {
65
* @see org.apache.commons.collections4.Predicate
66
*/
67
public static <T> org.apache.commons.collections4.Predicate<T> asPredicate(PredicateWithException<T, ?> predicate) {
68
- Predicate<T> internal = PredicateWithException.unchecked(verifyPredicate(predicate), DEFAULT_EXCEPTION_MAPPER);
69
- return internal::test;
+ return PredicateWithException.unchecked(verifyPredicate(predicate), DEFAULT_EXCEPTION_MAPPER)::test;
70
}
71
0 commit comments