Skip to content

Commit 41a6617

Browse files
committed
Replace lambda with a method reference
1 parent 789d02b commit 41a6617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/assertj/core/internal/Paths.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public void assertIsDirectoryContaining(AssertionInfo info, Path actual, String
377377
public void assertIsDirectoryRecursivelyContaining(AssertionInfo info, Path actual, String syntaxAndPattern) {
378378
requireNonNull(syntaxAndPattern, "The syntax and pattern should not be null");
379379
PathMatcher pathMatcher = pathMatcher(info, actual, syntaxAndPattern);
380-
assertIsDirectoryRecursivelyContaining(info, actual, path -> pathMatcher.matches(path),
380+
assertIsDirectoryRecursivelyContaining(info, actual, pathMatcher::matches,
381381
format("the '%s' pattern", syntaxAndPattern));
382382
}
383383

0 commit comments

Comments
 (0)