Author: markt Date: Thu Jan 21 11:32:43 2016 New Revision: 1725906 URL: http://svn.apache.org/viewvc?rev=1725906&view=rev Log: No functional change. Use longer lines to improve readability
Modified: tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java Modified: tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?rev=1725906&r1=1725905&r2=1725906&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java (original) +++ tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java Thu Jan 21 11:32:43 2016 @@ -1599,10 +1599,8 @@ public class HostConfig implements Lifec if (current.getPath().equals(previous.getPath())) { // Current and previous are same path - current will always // be a later version - Context previousContext = - (Context) host.findChild(previous.getName()); - Context currentContext = - (Context) host.findChild(current.getName()); + Context previousContext = (Context) host.findChild(previous.getName()); + Context currentContext = (Context) host.findChild(current.getName()); if (previousContext != null && currentContext != null && currentContext.getState().isAvailable() && !isServiced(previous.getName())) { @@ -1610,28 +1608,22 @@ public class HostConfig implements Lifec if (manager != null) { int sessionCount; if (manager instanceof DistributedManager) { - sessionCount = ((DistributedManager) - manager).getActiveSessionsFull(); + sessionCount = ((DistributedManager) manager).getActiveSessionsFull(); } else { sessionCount = manager.getActiveSessions(); } if (sessionCount == 0) { if (log.isInfoEnabled()) { log.info(sm.getString( - "hostConfig.undeployVersion", - previous.getName())); + "hostConfig.undeployVersion", previous.getName())); } - DeployedApplication app = - deployed.get(previous.getName()); - String[] resources = - app.redeployResources.keySet().toArray( - new String[0]); + DeployedApplication app = deployed.get(previous.getName()); + String[] resources = app.redeployResources.keySet().toArray(new String[0]); // Version is unused - undeploy it completely // The -1 is a 'trick' to ensure all redeploy // resources are removed undeploy(app); - deleteRedeployResources(app, resources, -1, - true); + deleteRedeployResources(app, resources, -1, true); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org