aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/util/PrettyTimeFormatter.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-19 14:46:41 +0300
committerGravatar Vitaly Takmazov2020-10-19 14:46:41 +0300
commitaf94a01336a8ec2c44a220548bb9ab409976b69d (patch)
tree933c4512aa6b84cda8a9905120ea09ba61116449 /src/main/java/com/juick/util/PrettyTimeFormatter.java
parent17972adb2c94dd425c0144d71150212dab939d91 (diff)
serialVersionUID for all Serializable classes
Diffstat (limited to 'src/main/java/com/juick/util/PrettyTimeFormatter.java')
-rw-r--r--src/main/java/com/juick/util/PrettyTimeFormatter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/juick/util/PrettyTimeFormatter.java b/src/main/java/com/juick/util/PrettyTimeFormatter.java
index 34a230f5..5c736413 100644
--- a/src/main/java/com/juick/util/PrettyTimeFormatter.java
+++ b/src/main/java/com/juick/util/PrettyTimeFormatter.java
@@ -33,6 +33,11 @@ public class PrettyTimeFormatter {
// Cache PrettyTime per locale. LRU cache to prevent memory leak.
private static final Map<Locale, PrettyTime> PRETTY_TIME_LOCALE_MAP =
new LinkedHashMap<>(MAX_CACHE_SIZE + 1, 1.1F, true) {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1828878791879310392L;
+
@Override
protected boolean removeEldestEntry(Map.Entry<Locale, PrettyTime> eldest) {
return size() > MAX_CACHE_SIZE;