geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1632893 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/FileArchive.java
Date Sun, 19 Oct 2014 11:54:35 GMT
Author: rmannibucau
Date: Sun Oct 19 11:54:35 2014
New Revision: 1632893

URL: http://svn.apache.org/r1632893
Log:
same fix as in JarArchive for FileArchive

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/FileArchive.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/FileArchive.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/FileArchive.java?rev=1632893&r1=1632892&r2=1632893&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/FileArchive.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/FileArchive.java
Sun Oct 19 11:54:35 2014
@@ -114,7 +114,7 @@ public class FileArchive implements Arch
                 scanDir(file, classNames, packageName + file.getName() + ".");
             } else if (file.getName().endsWith(".class")) {
                 String name = file.getName();
-                name = name.replaceFirst(".class$", "");
+                name = name.substring(0, name.length() - 6);
                 if (name.contains(".")) continue;
                 classNames.add(packageName + name);
             }
@@ -172,4 +172,4 @@ public class FileArchive implements Arch
         }
         return result.toString();
     }
-}
\ No newline at end of file
+}



Mime
View raw message