aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-09-09 21:45:29 +0200
committerRoel Spilker <r.spilker@gmail.com>2014-09-09 21:45:29 +0200
commitf3ac59efc6e4bb42315713c631315ac04420031b (patch)
tree36089671915091c5e94eb9c43dc459fe5e52f96c /src
parent242e34730d124a63f6a423bb5d2200df6ffd3c22 (diff)
downloadlombok-f3ac59efc6e4bb42315713c631315ac04420031b.tar.gz
lombok-f3ac59efc6e4bb42315713c631315ac04420031b.tar.bz2
lombok-f3ac59efc6e4bb42315713c631315ac04420031b.zip
[config] Don't access the file system nearly every call.
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/core/configuration/FileSystemSourceCache.java2
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;