@yegor256
In CheckstyleValidator.configuration():
if (!parent.exists() && !parent.mkdirs()) { throw new IllegalStateException( String.format( "Unable to create directories needed for %s", cache.getPath() ) ); }
-
Problem: If parent.exists() returns true but the directory is not actually writable, this will not be caught.
-
Consequence: Later file operations may fail.
-
Fix: Consider checking for writability as well.