Better lambdas.
MODIFY
src/test/java/org/apache/commons/io/file/AccumulatorPathVisitorTest.java
src/test/java/org/apache/commons/io/file/AccumulatorPathVisitorTest.java
static Stream<Arguments> testParameters() {
// @formatter:off
return Stream.of(
- Arguments.of((Supplier<AccumulatorPathVisitor>) () -> {
- return AccumulatorPathVisitor.withLongCounters();
- }),
- Arguments.of((Supplier<AccumulatorPathVisitor>) () -> {
- return AccumulatorPathVisitor.withBigIntegerCounters();
- }));
+ Arguments.of((Supplier<AccumulatorPathVisitor>) () -> AccumulatorPathVisitor.withLongCounters()),
+ Arguments.of((Supplier<AccumulatorPathVisitor>) () -> AccumulatorPathVisitor.withBigIntegerCounters()));
// @formatter:on
}

Better lambdas.