- if (s[i].endsWith(".class")) {
- bcp.visitJavaClass(repo.loadClass(s[i].substring(0, s[i].length() - 6)));
+ if (s.endsWith("$")) s = s.substring(0, s.length() - 1);
+ if (s.endsWith(".class")) {
+ bcp.visitJavaClass(repo.loadClass(s.substring(0, s.length() - 6)));