File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/test/java/org/apache/commons/pool3/impl Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5353import javax .management .ObjectName ;
5454
5555import org .apache .commons .lang3 .exception .ExceptionUtils ;
56+ import org .apache .commons .lang3 .function .Suppliers ;
5657import org .apache .commons .pool3 .AbstractTestKeyedObjectPool ;
5758import org .apache .commons .pool3 .BaseKeyedPooledObjectFactory ;
5859import org .apache .commons .pool3 .DestroyMode ;
@@ -2392,7 +2393,7 @@ void testNegativeMaxTotalPerKey() throws Exception {
23922393 void testNPEOnFactoryNull () {
23932394 // @formatter:off
23942395 final DisconnectingWaiterFactory <String > factory = new DisconnectingWaiterFactory <>(
2395- () -> null , // Override default to always return null from makeObject
2396+ Suppliers . nul () , // Override default to always return null from makeObject
23962397 DisconnectingWaiterFactory .DEFAULT_DISCONNECTED_LIFECYCLE_ACTION ,
23972398 DisconnectingWaiterFactory .DEFAULT_DISCONNECTED_VALIDATION_ACTION
23982399 );
Original file line number Diff line number Diff line change 5252import javax .management .ObjectName ;
5353
5454import org .apache .commons .lang3 .ThreadUtils ;
55+ import org .apache .commons .lang3 .function .Suppliers ;
5556import org .apache .commons .lang3 .time .DurationUtils ;
5657import org .apache .commons .pool3 .BasePooledObjectFactory ;
5758import org .apache .commons .pool3 .ObjectPool ;
@@ -2653,7 +2654,7 @@ void testNoInvalidateNPE() throws Exception {
26532654 @ Timeout (value = 1000 , unit = TimeUnit .MILLISECONDS )
26542655 void testNPEOnFactoryNull () throws InterruptedException {
26552656 final DisconnectingWaiterFactory <String > factory = new DisconnectingWaiterFactory <>(
2656- () -> null , // Override default to always return null from makeObject
2657+ Suppliers . nul () , // Override default to always return null from makeObject
26572658 DisconnectingWaiterFactory .DEFAULT_DISCONNECTED_LIFECYCLE_ACTION ,
26582659 DisconnectingWaiterFactory .DEFAULT_DISCONNECTED_VALIDATION_ACTION );
26592660 try (GenericObjectPool <Waiter , IllegalStateException > pool = new GenericObjectPool <>(factory )) {
You can’t perform that action at this time.
0 commit comments