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 2013/05/30 17:01:15 UTC

svn commit: r1487881 - /tomcat/trunk/test/org/apache/catalina/core/TestSwallowAbortedUploads.java

Author: markt
Date: Thu May 30 15:01:14 2013
New Revision: 1487881

URL: http://svn.apache.org/r1487881
Log:
Remove unnecessary code

Modified:
    tomcat/trunk/test/org/apache/catalina/core/TestSwallowAbortedUploads.java

Modified: tomcat/trunk/test/org/apache/catalina/core/TestSwallowAbortedUploads.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/core/TestSwallowAbortedUploads.java?rev=1487881&r1=1487880&r2=1487881&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/core/TestSwallowAbortedUploads.java (original)
+++ tomcat/trunk/test/org/apache/catalina/core/TestSwallowAbortedUploads.java Thu May 30 15:01:14 2013
@@ -226,13 +226,10 @@ public class TestSwallowAbortedUploads e
         private static final int limitSize = 100;
         private static final int hugeSize = 400000;
 
-        private boolean init;
         private Context context;
 
         private synchronized void init(boolean limited, boolean swallow)
                 throws Exception {
-            if (init)
-                return;
 
             Tomcat tomcat = getTomcatInstance();
             context = tomcat.addContext("", TEMP_DIR);
@@ -253,8 +250,6 @@ public class TestSwallowAbortedUploads e
 
             tomcat.start();
             setPort(tomcat.getConnector().getLocalPort());
-
-            init = true;
         }
 
         private Exception doRequest(boolean limited, boolean swallow) {
@@ -347,13 +342,10 @@ public class TestSwallowAbortedUploads e
         private static final String servletName = "uploadAborted";
         private static final int hugeSize = 400000;
 
-        private boolean init;
         private Context context;
 
         private synchronized void init(int status, boolean swallow)
                 throws Exception {
-            if (init)
-                return;
 
             Tomcat tomcat = getTomcatInstance();
             context = tomcat.addContext("", TEMP_DIR);
@@ -367,8 +359,6 @@ public class TestSwallowAbortedUploads e
             tomcat.start();
 
             setPort(tomcat.getConnector().getLocalPort());
-
-            init = true;
         }
 
         private Exception doRequest(int status, boolean swallow) {



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