You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2012/06/06 02:29:10 UTC

svn commit: r1346685 - /commons/sandbox/classscan/trunk/src/main/java/org/apache/commons/classscan/bcel/JarClassLocation.java

Author: mbenson
Date: Wed Jun  6 00:29:09 2012
New Revision: 1346685

URL: http://svn.apache.org/viewvc?rev=1346685&view=rev
Log:
sp

Modified:
    commons/sandbox/classscan/trunk/src/main/java/org/apache/commons/classscan/bcel/JarClassLocation.java

Modified: commons/sandbox/classscan/trunk/src/main/java/org/apache/commons/classscan/bcel/JarClassLocation.java
URL: http://svn.apache.org/viewvc/commons/sandbox/classscan/trunk/src/main/java/org/apache/commons/classscan/bcel/JarClassLocation.java?rev=1346685&r1=1346684&r2=1346685&view=diff
==============================================================================
--- commons/sandbox/classscan/trunk/src/main/java/org/apache/commons/classscan/bcel/JarClassLocation.java (original)
+++ commons/sandbox/classscan/trunk/src/main/java/org/apache/commons/classscan/bcel/JarClassLocation.java Wed Jun  6 00:29:09 2012
@@ -52,7 +52,7 @@ public class JarClassLocation extends Ur
      * @return The class name without the trailing ".class", with the dotted
      *         package prefix, or null if the supplied filename is invalid
      */
-    static String getCannonicalClassNameFromPathName(String path) {
+    static String getCanonicalClassNameFromPathName(String path) {
         Matcher m = pathPattern.matcher(path);
         if (m.matches()) {
             String packagePrefix = m.group(1).replace('/', '.');
@@ -80,7 +80,7 @@ public class JarClassLocation extends Ur
     private void addClassesFromJarFile(JarFile jarFile) {
         for (Enumeration<JarEntry> jarEntries = jarFile.entries(); jarEntries.hasMoreElements();) {
             JarEntry jarEntry = jarEntries.nextElement();
-            String pathName = getCannonicalClassNameFromPathName(jarEntry.getName());
+            String pathName = getCanonicalClassNameFromPathName(jarEntry.getName());
             if (pathName != null) {
                 addClass(pathName, jarFile, jarEntry);
                 continue;
@@ -125,4 +125,4 @@ public class JarClassLocation extends Ur
             loader.addLocation(newLocation);
         }
     }
-}
\ No newline at end of file
+}