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
Pipeline #22893 failed with stage
in 11 minutes and 48 seconds
......@@ -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...",
......
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