You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/10/22 18:16:46 UTC

[tomcat] 01/04: SpotBugs - fix potential concurrency issue

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 7f05c89106653fb09b5758f99190814469c9f04a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Oct 22 10:49:06 2020 +0100

    SpotBugs - fix potential concurrency issue
---
 java/org/apache/catalina/core/ApplicationFilterFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/core/ApplicationFilterFactory.java b/java/org/apache/catalina/core/ApplicationFilterFactory.java
index d2967fe..4dbb679 100644
--- a/java/org/apache/catalina/core/ApplicationFilterFactory.java
+++ b/java/org/apache/catalina/core/ApplicationFilterFactory.java
@@ -52,7 +52,7 @@ public final class ApplicationFilterFactory {
     public static final String DISPATCHER_REQUEST_PATH_ATTR =
             Globals.DISPATCHER_REQUEST_PATH_ATTR;
 
-    private static ApplicationFilterFactory factory = null;
+    private static volatile ApplicationFilterFactory factory = null;
 
 
     // ----------------------------------------------------------- Constructors


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org