System.getProperty("java.class.path")));
repeats = Integer.getInteger("repeats", 3).intValue() + 1;
Set<String> classesFound = new HashSet<String>();
for (int i = 0; i < jars.size(); i++) {
ZipFile zip;
try {
zip = new ZipFile(jars.get(i));
} catch (IOException e) {
System.err.println("Error openning " + jars.get(i));
e.printStackTrace();
continue;
}
Enumeration<? extends ZipEntry> entries = zip.entries();
while (entries.hasMoreElements()) {
ZipEntry e = entries.nextElement();
String s = e.getName();
if (s.endsWith(".class")) {
s = s.substring(0, s.length() - 6).replace('/', '.');
if (!classesFound.add(s)) {
continue;
}
if (clazz == null || s.indexOf(clazz) != -1) {
InputStream is = zip.getInputStream(e);
byte[] bytes = new ClassReader(is).b;
classes.add(bytes);
classNames.add(s);
is.close();
if (classes.size() % 2500 == 0) {
System.out.println("... searching, found "
+ classes.size() + " classes.");
}
}
}
}
zip.close();
}
System.out.println("Found " + classes.size() + " classes.");
RunTest nullBCELAdapt = new RunTest() {
@Override