Don't grab sub-classes

This commit is contained in:
libraryaddict 2020-02-25 23:55:48 +13:00
parent b8de529b25
commit 3db1f06402
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -36,7 +36,7 @@ public class ClassGetter {
} else { } else {
System.out.println("Not sure how you got here: " + resource.getPath()); System.out.println("Not sure how you got here: " + resource.getPath());
for (File f : new File(resource.getPath() + "/" + pkgname.replace(".", "/")).listFiles()) { for (File f : new File(resource.getPath() + "/" + pkgname.replace(".", "/")).listFiles()) {
if (!f.getName().endsWith(".class")) { if (!f.getName().endsWith(".class") || f.getName().contains("$")) {
continue; continue;
} }