tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1543026 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Date Mon, 18 Nov 2013 13:43:19 GMT
Author: markt
Date: Mon Nov 18 13:43:19 2013
New Revision: 1543026

URL: http://svn.apache.org/r1543026
Log:
Fix indent

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardContext.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=1543026&r1=1543025&r2=1543026&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Nov 18 13:43:19 2013
@@ -5840,25 +5840,25 @@ public class StandardContext extends Con
      * Get naming context full name.
      */
     private String getNamingContextName() {
-    if (namingContextName == null) {
-        Container parent = getParent();
-        if (parent == null) {
-        namingContextName = getName();
-        } else {
-        Stack<String> stk = new Stack<>();
-        StringBuilder buff = new StringBuilder();
-        while (parent != null) {
-            stk.push(parent.getName());
-            parent = parent.getParent();
-        }
-        while (!stk.empty()) {
-            buff.append("/" + stk.pop());
-        }
-        buff.append(getName());
-        namingContextName = buff.toString();
+        if (namingContextName == null) {
+            Container parent = getParent();
+            if (parent == null) {
+            namingContextName = getName();
+            } else {
+            Stack<String> stk = new Stack<>();
+            StringBuilder buff = new StringBuilder();
+            while (parent != null) {
+                stk.push(parent.getName());
+                parent = parent.getParent();
+            }
+            while (!stk.empty()) {
+                buff.append("/" + stk.pop());
+            }
+            buff.append(getName());
+            namingContextName = buff.toString();
+            }
         }
-    }
-    return namingContextName;
+        return namingContextName;
     }
 
 



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


Mime
View raw message