You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by pa...@apache.org on 2018/10/09 16:21:47 UTC

svn commit: r1843305 - /turbine/core/trunk/src/java/org/apache/turbine/Turbine.java

Author: painter
Date: Tue Oct  9 16:21:47 2018
New Revision: 1843305

URL: http://svn.apache.org/viewvc?rev=1843305&view=rev
Log:
Make field non-mutable, ignore findbugs report - https://rules.sonarsource.com/java/RSPEC-2226

Modified:
    turbine/core/trunk/src/java/org/apache/turbine/Turbine.java

Modified: turbine/core/trunk/src/java/org/apache/turbine/Turbine.java
URL: http://svn.apache.org/viewvc/turbine/core/trunk/src/java/org/apache/turbine/Turbine.java?rev=1843305&r1=1843304&r2=1843305&view=diff
==============================================================================
--- turbine/core/trunk/src/java/org/apache/turbine/Turbine.java (original)
+++ turbine/core/trunk/src/java/org/apache/turbine/Turbine.java Tue Oct  9 16:21:47 2018
@@ -142,7 +142,7 @@ public class Turbine extends HttpServlet
      * sometimes even concurrently. This causes bad things to happen,
      * so we use this flag to prevent it.
      */
-    private boolean firstInit = true;
+    private static boolean firstInit = true;
 
     /**
      * The pipeline to use when processing requests.
@@ -155,7 +155,7 @@ public class Turbine extends HttpServlet
     /**
      * Should initialization activities be performed during doGet() execution?
      */
-    private boolean firstDoGet = true;
+    private static boolean firstDoGet = true;
 
     /**
      * Keep all the properties of the web server in a convenient data