From: markt Date: Thu, 16 Dec 2010 15:04:56 +0000 (+0000) Subject: Fix a FindBugs nag in the unit tests X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d5a61a45eb3b4ae9afb9b359dca3a25df02ec39f;p=tomcat7.0 Fix a FindBugs nag in the unit tests git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1049997 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/valves/Benchmarks.java b/test/org/apache/catalina/valves/Benchmarks.java index b46eb5321..9cc787c45 100644 --- a/test/org/apache/catalina/valves/Benchmarks.java +++ b/test/org/apache/catalina/valves/Benchmarks.java @@ -206,7 +206,7 @@ public class Benchmarks extends TestCase { } private volatile Date currentDate = new Date(); - private String currentDateString = null; + private volatile String currentDateString = null; private SimpleDateFormat dayFormatter = new SimpleDateFormat("dd"); private SimpleDateFormat monthFormatter = new SimpleDateFormat("MM"); private SimpleDateFormat yearFormatter = new SimpleDateFormat("yyyy");