return createSnapshot(hash, jarArchive.contents, new ClassFilesAnalyzer(analyzer));
}
JarSnapshot createSnapshot(byte[] hash, FileTree classes, final ClassFilesAnalyzer analyzer) {
final Map<String, byte[]> hashes = new HashMap<String, byte[]>();
classes.visit(new FileVisitor() {
public void visitDir(FileVisitDetails dirDetails) {
}
public void visitFile(FileVisitDetails fileDetails) {
analyzer.visitFile(fileDetails);