archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/2] git commit: make this servlet thread safe!!
Date Mon, 13 Oct 2014 05:35:14 GMT
Repository: archiva
Updated Branches:
  refs/heads/master c2f9100dd -> 4e331298e


make this servlet thread safe!!


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/70bc09fb
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/70bc09fb
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/70bc09fb

Branch: refs/heads/master
Commit: 70bc09fbb965a922808dcf77708fabdd4216455b
Parents: c2f9100
Author: Olivier Lamy <olamy@apache.org>
Authored: Mon Oct 13 16:19:42 2014 +1100
Committer: Olivier Lamy <olamy@apache.org>
Committed: Mon Oct 13 16:19:42 2014 +1100

----------------------------------------------------------------------
 .../main/java/org/apache/archiva/web/rss/RssFeedServlet.java   | 4 ++--
 .../java/org/apache/archiva/web/rss/RssFeedServletTest.java    | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/70bc09fb/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
index ddf22be..bc26d36 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
@@ -78,8 +78,6 @@ public class RssFeedServlet
 
     private Logger log = LoggerFactory.getLogger( RssFeedServlet.class );
 
-    private RssFeedProcessor processor;
-
     private WebApplicationContext wac;
 
     private UserRepositories userRepositories;
@@ -131,6 +129,8 @@ public class RssFeedServlet
             return;
         }
 
+        RssFeedProcessor processor = null;
+
         try
         {
             Map<String, String> map = new HashMap<>();

http://git-wip-us.apache.org/repos/asf/archiva/blob/70bc09fb/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java
b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java
index f11620a..54dab14 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/RssFeedServletTest.java
@@ -431,7 +431,7 @@ public class RssFeedServletTest
     }
 
     @Ignore
-    public void XXX_testInvalidRequest()
+    public void testInvalidRequest()
         throws Exception
     {
         //RssFeedServlet servlet =
@@ -450,7 +450,7 @@ public class RssFeedServletTest
     }
 
     @Ignore
-    public void XXX_testInvalidAuthenticationRequest()
+    public void testInvalidAuthenticationRequest()
         throws Exception
     {
         //RssFeedServlet servlet =
@@ -476,7 +476,7 @@ public class RssFeedServletTest
     }
 
     @Ignore
-    public void XXX_testUnauthorizedRequest()
+    public void testUnauthorizedRequest()
         throws Exception
     {
 


Mime
View raw message