[config] Don't access the file system every call.

This commit is contained in:
Roel Spilker committed 2014-09-09 21:26:54 +02:00
1 parent 3415ff0f47
commit dc7d0a9188
1 file changed
-1
@@ -122,7 +122,6 @@ public class FileSystemSourceCache {
}
ConfigurationSource getSourceForDirectory(File directory, ConfigurationProblemReporter reporter) {
if (!directory.exists() || !directory.isDirectory()) throw new IllegalArgumentException("Not a directory: " + directory);
long now = System.currentTimeMillis();
File configFile = new File(directory, LOMBOK_CONFIG_FILENAME);