commit | c99d99b22c49ca00f6ac769376cc9496ef511b3c | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri Jul 16 00:57:25 2021 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Fri Jul 16 00:58:02 2021 +0100 |
tree | 48e6d15c0b8e1f7edcaca042dd54f22a6f203b70 | |
parent | b5ef5184f2c411a9c4888352d98fc1748bec86ee [diff] |
Add serialVersionUID in inner anonymous class Change-Id: I9924e67ce7739d360b775f97110813ed7901998c
diff --git a/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/InMemoryLRU.java b/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/InMemoryLRU.java index 7f450d5..dcf7a68 100644 --- a/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/InMemoryLRU.java +++ b/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/InMemoryLRU.java
@@ -31,6 +31,8 @@ LRUMap = Collections.synchronizedMap( new LinkedHashMap<K, Boolean>(capacity, 0.75f, true) { + private static final long serialVersionUID = 1L; + @Override protected boolean removeEldestEntry(Map.Entry<K, Boolean> eldest) { return size() > capacity;