Skip to content
Snippets Groups Projects
Verified Commit c8f1ccc9 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

comparators.java: properly fall back from procyon to javap also when procyon...

comparators.java: properly fall back from procyon to javap also when procyon exists but doesn't return any output

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 4e7ba71d
No related branches found
No related tags found
No related merge requests found
Pipeline #22893 failed
......@@ -80,14 +80,17 @@ class ClassFile(File):
decompilers = [ProcyonDecompiler, Javap]
def compare_details(self, other, source=None):
diff = None
diff = []
for decompiler in self.decompilers:
try:
diff = [
Difference.from_command(decompiler, self.path, other.path)
]
if diff:
single_diff = Difference.from_command(
decompiler,
self.path,
other.path
)
if single_diff:
diff.append(single_diff)
break
except RequiredToolNotFound:
logger.debug("Unable to find %s. Falling back...",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment