rzo1 commented on code in PR #57:
URL: https://github.com/apache/geronimo-xbean/pull/57#discussion_r3531211437


##########
xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java:
##########
@@ -200,28 +195,20 @@ private List<String> jar(URL location) throws IOException 
{
         InputStream in = url.openStream();
         try {
             JarInputStream jarStream = new JarInputStream(in);
-            return jar(jarStream);
+            jar(jarStream);
         } finally {
             in.close();
         }
     }
 
-    private List<String> jar(JarInputStream jarStream) throws IOException {
-        List<String> classNames = new ArrayList<String>();
-
+    private void jar(JarInputStream jarStream) throws IOException {
         JarEntry entry;
         while ((entry = jarStream.getNextJarEntry()) != null) {
             if (entry.isDirectory() || !entry.getName().endsWith(".class")) {
                 continue;
             }
-            String className = entry.getName();
-            className = className.replaceFirst(".class$", "");
-            if (className.contains(".")) continue;
-            className = className.replace('/', '.');
-            classNames.add(className);
+            readClassDef(jarStream);

Review Comment:
   Think its narrower than at the first glance as discussed via Slack ;-) - 
just ignore that.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to