I would like to ask about one thing which I don’t understand.
When I use
f -> Files.isRegularFile( f )
there is a major code smell that Java 8’s “Files.exists” should not be used (squid:S3725).
But when I replace it with
the warning disappears. Why is so?
Looks like some inconsistency, the same method is called.