Commits

Anonymous committed 812e899

get constant out for loop

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@2020e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStoreClassLoader.java

     private Class fastFindClass(final String name) {
 
         if (stores != null) {
+            String fileName = name.replace('.', '/') + ".class";
             for (final ResourceStore store : stores) {
-                final byte[] clazzBytes = store.read(name.replace('.', '/') + ".class");
+                final byte[] clazzBytes = store.read(fileName);
                 if (clazzBytes != null) {
                     return defineClass(name, clazzBytes, 0, clazzBytes.length);
                 }