From 72f88548f894fc941bc847a27a4b451c6d97b255 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Wed, 31 Oct 2007 04:04:32 +0000 Subject: [PATCH] Making the HashMaps final as per LANG-367 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@590552 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/time/FastDateFormat.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/commons/lang/time/FastDateFormat.java b/src/java/org/apache/commons/lang/time/FastDateFormat.java index d1caaa897..d2a0f3c02 100644 --- a/src/java/org/apache/commons/lang/time/FastDateFormat.java +++ b/src/java/org/apache/commons/lang/time/FastDateFormat.java @@ -107,11 +107,11 @@ public class FastDateFormat extends Format { private static String cDefaultPattern; - private static Map cInstanceCache = new HashMap(7); - private static Map cDateInstanceCache = new HashMap(7); - private static Map cTimeInstanceCache = new HashMap(7); - private static Map cDateTimeInstanceCache = new HashMap(7); - private static Map cTimeZoneDisplayCache = new HashMap(7); + private static final Map cInstanceCache = new HashMap(7); + private static final Map cDateInstanceCache = new HashMap(7); + private static final Map cTimeInstanceCache = new HashMap(7); + private static final Map cDateTimeInstanceCache = new HashMap(7); + private static final Map cTimeZoneDisplayCache = new HashMap(7); /** * The pattern.