ZipEntry e = (ZipEntry)entries.nextElement();
String s = e.getName();
if (s.endsWith(".class")) {
s = s.substring(0, s.length() - 6).replace('/', '.');
InputStream is = zip.getInputStream(e);
new ClassReader(is).accept(new EmptyClassVisitor(), false);
}
}
t = System.currentTimeMillis() - t;
System.out.println("Time to deserialize " + n + " classes = " + t + " ms");
}
for (int i = 0; i < 5; ++i) {
long t = System.currentTimeMillis();
Enumeration entries = zip.entries();
while (entries.hasMoreElements()) {
ZipEntry e = (ZipEntry)entries.nextElement();
String s = e.getName();
if (s.endsWith(".class")) {
s = s.substring(0, s.length() - 6).replace('/', '.');
InputStream is = zip.getInputStream(e);
ClassWriter cw = new ClassWriter(false);
new ClassReader(is).accept(cw, false);
cw.toByteArray();
}
}
t = System.currentTimeMillis() - t;
System.out.println("Time to deserialize and reserialize " + n + " classes = " + t + " ms");