mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 00:17:45 +00:00
[config] Don't access the file system nearly every call.
This commit is contained in:
1 parent
242e34730d
commit
f3ac59efc6
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user