diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-09-09 21:45:29 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-09-09 21:45:29 +0200 |
commit | f3ac59efc6e4bb42315713c631315ac04420031b (patch) | |
tree | 36089671915091c5e94eb9c43dc459fe5e52f96c | |
parent | 242e34730d124a63f6a423bb5d2200df6ffd3c22 (diff) | |
download | lombok-f3ac59efc6e4bb42315713c631315ac04420031b.tar.gz lombok-f3ac59efc6e4bb42315713c631315ac04420031b.tar.bz2 lombok-f3ac59efc6e4bb42315713c631315ac04420031b.zip |
[config] Don't access the file system nearly every call.
-rw-r--r-- | src/core/lombok/core/configuration/FileSystemSourceCache.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |