From 70e603f81950c7ce56245f4fb211c688bfac7fe5 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Mon, 9 Nov 2015 15:08:20 +0000 Subject: [PATCH] Code cleanup git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1713455 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/http/client/utils/DateUtils.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/client/utils/DateUtils.java b/httpclient/src/main/java/org/apache/http/client/utils/DateUtils.java index b89dbe1e3..1ef913ee4 100644 --- a/httpclient/src/main/java/org/apache/http/client/utils/DateUtils.java +++ b/httpclient/src/main/java/org/apache/http/client/utils/DateUtils.java @@ -199,8 +199,7 @@ public final class DateUtils { */ final static class DateFormatHolder { - private static final ThreadLocal>> - THREADLOCAL_FORMATS = new ThreadLocal<>(); + private static final ThreadLocal>> THREADLOCAL_FORMATS = new ThreadLocal<>(); /** * creates a {@link SimpleDateFormat} for the requested format string. @@ -219,8 +218,7 @@ public final class DateUtils { Map formats = ref == null ? null : ref.get(); if (formats == null) { formats = new HashMap<>(); - THREADLOCAL_FORMATS.set( - new SoftReference<>(formats)); + THREADLOCAL_FORMATS.set(new SoftReference<>(formats)); } SimpleDateFormat format = formats.get(pattern);