diff options
Diffstat (limited to 'src/test/java/org/apache/commons/io/function/TestConstants.java')
-rw-r--r-- | src/test/java/org/apache/commons/io/function/TestConstants.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/apache/commons/io/function/TestConstants.java b/src/test/java/org/apache/commons/io/function/TestConstants.java index bafe7ef0..dfea176a 100644 --- a/src/test/java/org/apache/commons/io/function/TestConstants.java +++ b/src/test/java/org/apache/commons/io/function/TestConstants.java @@ -44,17 +44,17 @@ class TestConstants { static IOFunction<Object, Object> THROWING_IO_FUNCTION = t -> throwIOException(); - static IOIntSupplier THROWING_IO_INT_SUPPLIER = () -> throwIOException(); + static IOIntSupplier THROWING_IO_INT_SUPPLIER = TestConstants::throwIOException; - static IOLongSupplier THROWING_IO_LONG_SUPPLIER = () -> throwIOException(); + static IOLongSupplier THROWING_IO_LONG_SUPPLIER = TestConstants::throwIOException; static IOPredicate<Object> THROWING_IO_PREDICATE = t -> throwIOException(); static IOQuadFunction<Object, Object, Object, Object, Object> THROWING_IO_QUAD_FUNCTION = (t, u, v, w) -> throwIOException(); - static IORunnable THROWING_IO_RUNNABLE = () -> throwIOException(); + static IORunnable THROWING_IO_RUNNABLE = TestConstants::throwIOException; - static IOSupplier<Object> THROWING_IO_SUPPLIER = () -> throwIOException(); + static IOSupplier<Object> THROWING_IO_SUPPLIER = TestConstants::throwIOException; static IOTriConsumer<Object, Object, Object> THROWING_IO_TRI_CONSUMER = (t, u, v) -> throwIOException(); |