Skip to content

Commit ddda75a

Browse files
committed
Use method references
1 parent ab617a0 commit ddda75a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/java/org/apache/commons/io/function/TestConstants.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ class TestConstants {
4444

4545
static IOFunction<Object, Object> THROWING_IO_FUNCTION = t -> throwIOException();
4646

47-
static IOIntSupplier THROWING_IO_INT_SUPPLIER = () -> throwIOException();
47+
static IOIntSupplier THROWING_IO_INT_SUPPLIER = TestConstants::throwIOException;
4848

49-
static IOLongSupplier THROWING_IO_LONG_SUPPLIER = () -> throwIOException();
49+
static IOLongSupplier THROWING_IO_LONG_SUPPLIER = TestConstants::throwIOException;
5050

5151
static IOPredicate<Object> THROWING_IO_PREDICATE = t -> throwIOException();
5252

5353
static IOQuadFunction<Object, Object, Object, Object, Object> THROWING_IO_QUAD_FUNCTION = (t, u, v, w) -> throwIOException();
5454

55-
static IORunnable THROWING_IO_RUNNABLE = () -> throwIOException();
55+
static IORunnable THROWING_IO_RUNNABLE = TestConstants::throwIOException;
5656

57-
static IOSupplier<Object> THROWING_IO_SUPPLIER = () -> throwIOException();
57+
static IOSupplier<Object> THROWING_IO_SUPPLIER = TestConstants::throwIOException;
5858

5959
static IOTriConsumer<Object, Object, Object> THROWING_IO_TRI_CONSUMER = (t, u, v) -> throwIOException();
6060

0 commit comments

Comments
 (0)