mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 15:45:10 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -22,9 +22,9 @@ public class CacheHashMap<K, V extends CacheHashMap.CachedObject<?>> extends Has
|
||||
V object = super.get(key);
|
||||
object.updateTimeAccessed();
|
||||
|
||||
Iterator<Map.Entry<K,V>> iterator = this.entrySet().iterator();
|
||||
Iterator<Map.Entry<K, V>> iterator = this.entrySet().iterator();
|
||||
while (iterator.hasNext()) {
|
||||
Map.Entry<K,V> entry = iterator.next();
|
||||
Map.Entry<K, V> entry = iterator.next();
|
||||
long lifeTimeDiff = entry.getValue().timeSinceAccessed();
|
||||
if (lifeTimeDiff > this.maxCacheTime) {
|
||||
entry.getValue().save();
|
||||
@@ -68,7 +68,8 @@ public class CacheHashMap<K, V extends CacheHashMap.CachedObject<?>> extends Has
|
||||
this.timeSaved = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public void save(){}
|
||||
public void save() {
|
||||
}
|
||||
|
||||
public T getObject() {
|
||||
return this.object;
|
||||
|
||||
Reference in new issue
Block a user