tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1031706 - /tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java
Date Fri, 05 Nov 2010 18:38:23 GMT
Author: markt
Date: Fri Nov  5 18:38:23 2010
New Revision: 1031706

URL: http://svn.apache.org/viewvc?rev=1031706&view=rev
Log:
Parallel deployment
Additional Context.get[Name|Path]() clean up

Modified:
    tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java

Modified: tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java?rev=1031706&r1=1031705&r2=1031706&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java Fri Nov  5 18:38:23 2010
@@ -1356,14 +1356,13 @@ public abstract class ManagerBase extend
         
         if (container instanceof Context) {
             name.append(",context=");
-            Context context = (Context) container;
-            
-            String contextName = ((Context)container).getName();
+            String contextName = container.getName();
             if (!contextName.startsWith("/")) {
-                contextName = "/" + contextName;
+                name.append('/');
             }
             name.append(contextName);
             
+            Context context = (Context) container;
             name.append(",host=");
             name.append(context.getParent().getName());
         } else {



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


Mime
View raw message