@@ -12,7 +12,7 @@
|
||||
public class ExpiringMap<T> extends Long2ObjectOpenHashMap<T> {
|
||||
|
||||
@@ -21,11 +23,17 @@
|
||||
long j = SystemUtils.b();
|
||||
long j = SystemUtils.getMonotonicMillis();
|
||||
|
||||
this.b.put(i, j);
|
||||
- ObjectIterator objectiterator = this.b.long2LongEntrySet().iterator();
|
||||
@@ -21,7 +21,7 @@
|
||||
+ }
|
||||
+
|
||||
+ public void cleanup() {
|
||||
+ long j = SystemUtils.b();
|
||||
+ long j = SystemUtils.getMonotonicMillis();
|
||||
+ ObjectIterator<Long2LongMap.Entry> objectiterator = this.b.long2LongEntrySet().iterator(); // CraftBukkit - decompile error
|
||||
|
||||
while (objectiterator.hasNext()) {
|
||||
@@ -48,7 +48,7 @@
|
||||
+ // CraftBukkit start
|
||||
+ @Override
|
||||
+ public T computeIfAbsent(long l, LongFunction<? extends T> lf) {
|
||||
+ this.b.put(l, SystemUtils.b());
|
||||
+ this.b.put(l, SystemUtils.getMonotonicMillis());
|
||||
+ return super.computeIfAbsent(l, lf);
|
||||
+ }
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user