You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2014/06/23 04:25:12 UTC

svn commit: r1604682 - /tomcat/trunk/java/org/apache/catalina/mapper/Mapper.java

Author: kkolinko
Date: Mon Jun 23 02:25:11 2014
New Revision: 1604682

URL: http://svn.apache.org/r1604682
Log:
Simplify. No need for a local variable that is read once.

Modified:
    tomcat/trunk/java/org/apache/catalina/mapper/Mapper.java

Modified: tomcat/trunk/java/org/apache/catalina/mapper/Mapper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mapper/Mapper.java?rev=1604682&r1=1604681&r2=1604682&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mapper/Mapper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mapper/Mapper.java Mon Jun 23 02:25:11 2014
@@ -480,8 +480,7 @@ public final class Mapper {
             log.error("No context found: " + contextPath);
             return;
         }
-        ContextVersion[] contextVersions = context.versions;
-        ContextVersion contextVersion = exactFind(contextVersions, version);
+        ContextVersion contextVersion = exactFind(context.versions, version);
         if (contextVersion == null) {
             log.error("No context version found: " + contextPath + " "
                     + version);
@@ -514,8 +513,7 @@ public final class Mapper {
             log.error("No context found: " + contextPath);
             return;
         }
-        ContextVersion[] contextVersions = context.versions;
-        ContextVersion contextVersion = exactFind(contextVersions, version);
+        ContextVersion contextVersion = exactFind(context.versions, version);
         if (contextVersion == null) {
             log.error("No context version found: " + contextPath + " "
                     + version);
@@ -559,8 +557,7 @@ public final class Mapper {
             log.error("No context found: " + contextPath);
             return;
         }
-        ContextVersion[] contextVersions = context.versions;
-        ContextVersion contextVersion = exactFind(contextVersions, version);
+        ContextVersion contextVersion = exactFind(context.versions, version);
         if (contextVersion == null) {
             log.error("No context version found: " + contextPath + " "
                     + version);



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