Author: kkolinko Date: Thu May 8 18:28:43 2014 New Revision: 1593364 URL: http://svn.apache.org/r1593364 Log: Cleanup: the "entry.name" fields was read into a local variable. Use the variable.
Modified: tomcat/tc7.0.x/trunk/java/org/apache/naming/resources/ProxyDirContext.java Modified: tomcat/tc7.0.x/trunk/java/org/apache/naming/resources/ProxyDirContext.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/naming/resources/ProxyDirContext.java?rev=1593364&r1=1593363&r2=1593364&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/naming/resources/ProxyDirContext.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/naming/resources/ProxyDirContext.java Thu May 8 18:28:43 2014 @@ -1600,7 +1600,7 @@ public class ProxyDirContext implements */ protected void cacheLoad(CacheEntry entry) { - String name = entry.name; + final String name = entry.name; // Retrieve missing info boolean exists = true; @@ -1608,7 +1608,7 @@ public class ProxyDirContext implements // Retrieving attributes if (entry.attributes == null) { try { - Attributes attributes = dirContext.getAttributes(entry.name); + Attributes attributes = dirContext.getAttributes(name); if (!(attributes instanceof ResourceAttributes)) { entry.attributes = new ResourceAttributes(attributes); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org