[tor-commits] [onionoo/master] Delete methods that only call their super.
karsten at torproject.org
karsten at torproject.org
Mon Aug 27 12:34:52 UTC 2018
commit 0e11a8d1382867f119ff8f4d6a32b8178d4f8008
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Mon Aug 20 20:16:18 2018 +0200
Delete methods that only call their super.
---
.../org/torproject/onionoo/docs/DateTimeHelper.java | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java b/src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java
index 7966af8..9162edc 100644
--- a/src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java
+++ b/src/main/java/org/torproject/onionoo/docs/DateTimeHelper.java
@@ -73,24 +73,7 @@ public class DateTimeHelper {
public static final String DATEHOUR_NOSPACE_FORMAT = "yyyy-MM-dd-HH";
private static ThreadLocal<Map<String, DateFormat>> dateFormats =
- new ThreadLocal<Map<String, DateFormat>>() {
-
- public Map<String, DateFormat> get() {
- return super.get();
- }
-
- protected Map<String, DateFormat> initialValue() {
- return new HashMap<>();
- }
-
- public void remove() {
- super.remove();
- }
-
- public void set(Map<String, DateFormat> value) {
- super.set(value);
- }
- };
+ ThreadLocal.withInitial(HashMap::new);
private static DateFormat getDateFormat(String format) {
Map<String, DateFormat> threadDateFormats = dateFormats.get();
More information about the tor-commits
mailing list