Commit 4c4af792 authored by Skylot's avatar Skylot

core: fix dot graph dump

parent a0d8d9fc
...@@ -8,7 +8,6 @@ import jadx.core.dex.nodes.RootNode; ...@@ -8,7 +8,6 @@ import jadx.core.dex.nodes.RootNode;
import jadx.core.dex.visitors.IDexTreeVisitor; import jadx.core.dex.visitors.IDexTreeVisitor;
import jadx.core.dex.visitors.SaveCode; import jadx.core.dex.visitors.SaveCode;
import jadx.core.utils.ErrorsCounter; import jadx.core.utils.ErrorsCounter;
import jadx.core.utils.exceptions.CodegenException;
import jadx.core.utils.exceptions.DecodeException; import jadx.core.utils.exceptions.DecodeException;
import jadx.core.utils.exceptions.JadxRuntimeException; import jadx.core.utils.exceptions.JadxRuntimeException;
import jadx.core.utils.files.InputFile; import jadx.core.utils.files.InputFile;
...@@ -116,21 +115,12 @@ public final class Decompiler { ...@@ -116,21 +115,12 @@ public final class Decompiler {
LOG.info("processing ..."); LOG.info("processing ...");
ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(threadsCount); ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(threadsCount);
for (final ClassNode cls : root.getClasses(false)) { for (final ClassNode cls : root.getClasses(false)) {
if (cls.getCode() == null) { executor.execute(new Runnable() {
Runnable job = new Runnable() { @Override
@Override public void run() {
public void run() { ProcessClass.process(cls, passList);
ProcessClass.process(cls, passList);
}
};
executor.execute(job);
} else {
try {
savePass.visit(cls);
} catch (CodegenException e) {
LOG.error("Can't save class {}", cls, e);
} }
} });
} }
executor.shutdown(); executor.shutdown();
return executor; return executor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment