Skip to content

Commit

Permalink
Use Objects.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 11, 2024
1 parent 828650e commit 00a8ac7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public boolean accept(final File dir, final String name) {
*/
@Override
public String toString() {
final String delegate = fileFilter != null ? fileFilter.toString() : fileNameFilter.toString();
final String delegate = Objects.toString(fileFilter, fileNameFilter.toString());
return super.toString() + "(" + delegate + ")";
}

Expand Down

0 comments on commit 00a8ac7

Please sign in to comment.