tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1345846 - in /tomcat/trunk/java/org/apache: catalina/deploy/NamingResources.java tomcat/util/net/AbstractEndpoint.java
Date Mon, 04 Jun 2012 07:24:02 GMT
Author: kkolinko
Date: Mon Jun  4 07:24:02 2012
New Revision: 1345846

URL: http://svn.apache.org/viewvc?rev=1345846&view=rev
Log:
Code formatting (indents). No functional change.

Modified:
    tomcat/trunk/java/org/apache/catalina/deploy/NamingResources.java
    tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java

Modified: tomcat/trunk/java/org/apache/catalina/deploy/NamingResources.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/deploy/NamingResources.java?rev=1345846&r1=1345845&r2=1345846&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/deploy/NamingResources.java (original)
+++ tomcat/trunk/java/org/apache/catalina/deploy/NamingResources.java Mon Jun  4 07:24:02
2012
@@ -401,7 +401,8 @@ public class NamingResources extends Lif
                 throw new IllegalArgumentException(sm.getString(
                         "namingResources.resourceTypeFail", resource.getName(),
                         resource.getType()));
-            }            entries.add(resource.getName());
+            }
+            entries.add(resource.getName());
         }
 
         synchronized (resourceEnvRefs) {

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java?rev=1345846&r1=1345845&r2=1345846&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java Mon Jun  4 07:24:02
2012
@@ -163,10 +163,11 @@ public abstract class AbstractEndpoint {
         LimitLatch latch = this.connectionLimitLatch;
         if (latch != null) {
             // Update the latch that enforces this
-            if (maxCon == -1)
+            if (maxCon == -1) {
                 releaseConnectionLatch();
-            else
-            latch.setLimit(maxCon);
+            } else {
+                latch.setLimit(maxCon);
+            }
         } else if (maxCon > 0) {
             initializeConnectionLatch();
         }



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


Mime
View raw message