mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-10 12:05:06 +00:00
Fix boxing/unboxing.
This commit is contained in:
parent
fb184a7650
commit
94d5208dd9
@ -463,7 +463,7 @@ public static <O> FailableStream<O> stream(final Stream<O> stream) {
|
||||
*/
|
||||
public static <O1, O2, T extends Throwable> boolean test(final FailableBiPredicate<O1, O2, T> predicate,
|
||||
final O1 object1, final O2 object2) {
|
||||
return get(() -> predicate.test(object1, object2));
|
||||
return getAsBoolean(() -> predicate.test(object1, object2));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -476,7 +476,7 @@ public static <O1, O2, T extends Throwable> boolean test(final FailableBiPredica
|
||||
* @return the boolean value returned by the predicate
|
||||
*/
|
||||
public static <O, T extends Throwable> boolean test(final FailablePredicate<O, T> predicate, final O object) {
|
||||
return get(() -> predicate.test(object));
|
||||
return getAsBoolean(() -> predicate.test(object));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user