From f3ac59efc6e4bb42315713c631315ac04420031b Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 9 Sep 2014 21:45:29 +0200 Subject: [config] Don't access the file system nearly every call. --- src/core/lombok/core/configuration/FileSystemSourceCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lombok/core/configuration/FileSystemSourceCache.java b/src/core/lombok/core/configuration/FileSystemSourceCache.java index bb5a22e5..dc390eb6 100644 --- a/src/core/lombok/core/configuration/FileSystemSourceCache.java +++ b/src/core/lombok/core/configuration/FileSystemSourceCache.java @@ -127,7 +127,7 @@ public class FileSystemSourceCache { Content content = ensureContent(directory); synchronized (content) { - if (content.lastChecked != NEVER_CHECKED && now - content.lastChecked < RECHECK_FILESYSTEM && getLastModifiedOrMissing(configFile) == content.lastModified) { + if (content.lastChecked != NEVER_CHECKED && now - content.lastChecked < RECHECK_FILESYSTEM) { return content.source; } content.lastChecked = now; -- cgit