equal
deleted
inserted
replaced
126 public List<String> run(List<Path> classes) throws IOException, InterruptedException, |
126 public List<String> run(List<Path> classes) throws IOException, InterruptedException, |
127 ExecutionException, ConstantPoolException |
127 ExecutionException, ConstantPoolException |
128 { |
128 { |
129 ExecutorService pool = Executors.newFixedThreadPool(numThreads); |
129 ExecutorService pool = Executors.newFixedThreadPool(numThreads); |
130 for (Path path : classes) { |
130 for (Path path : classes) { |
131 ClassFileReader reader = ClassFileReader.newInstance(path.toFile()); |
131 ClassFileReader reader = ClassFileReader.newInstance(path); |
132 for (ClassFile cf : reader.getClassFiles()) { |
132 for (ClassFile cf : reader.getClassFiles()) { |
133 String classFileName = cf.getName(); |
133 String classFileName = cf.getName(); |
134 // for each ClassFile |
134 // for each ClassFile |
135 // parse constant pool to find matching method refs |
135 // parse constant pool to find matching method refs |
136 // parse each method (caller) |
136 // parse each method (caller) |