Author: markt Date: Thu Jan 17 15:25:18 2013 New Revision: 1434719 URL: http://svn.apache.org/viewvc?rev=1434719&view=rev Log: Remove unnecessary sync identified by FindBugs
Modified: tomcat/trunk/java/org/apache/tomcat/util/http/FastHttpDateFormat.java Modified: tomcat/trunk/java/org/apache/tomcat/util/http/FastHttpDateFormat.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/FastHttpDateFormat.java?rev=1434719&r1=1434718&r2=1434719&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/http/FastHttpDateFormat.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/http/FastHttpDateFormat.java Thu Jan 17 15:25:18 2013 @@ -142,15 +142,12 @@ public final class FastHttpDateFormat { newDate = threadLocalformat.format(dateValue); updateFormatCache(longValue, newDate); } else { - synchronized (formatCache) { - synchronized (format) { - newDate = format.format(dateValue); - } - updateFormatCache(longValue, newDate); + synchronized (format) { + newDate = format.format(dateValue); } + updateFormatCache(longValue, newDate); } return newDate; - } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org