Skip to content

Commit

Permalink
Replace lambda with a method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
epeee committed May 3, 2020
1 parent 789d02b commit 41a6617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/assertj/core/internal/Paths.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public void assertIsDirectoryContaining(AssertionInfo info, Path actual, String
public void assertIsDirectoryRecursivelyContaining(AssertionInfo info, Path actual, String syntaxAndPattern) {
requireNonNull(syntaxAndPattern, "The syntax and pattern should not be null");
PathMatcher pathMatcher = pathMatcher(info, actual, syntaxAndPattern);
assertIsDirectoryRecursivelyContaining(info, actual, path -> pathMatcher.matches(path),
assertIsDirectoryRecursivelyContaining(info, actual, pathMatcher::matches,
format("the '%s' pattern", syntaxAndPattern));
}

Expand Down

0 comments on commit 41a6617

Please sign in to comment.