Fix a FindBugs nag in the unit tests
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 16 Dec 2010 15:04:56 +0000 (15:04 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 16 Dec 2010 15:04:56 +0000 (15:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1049997 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/valves/Benchmarks.java

index b46eb53..9cc787c 100644 (file)
@@ -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");