Skip to content

Commit

Permalink
Include bridge and synthetic methods in Quiltflower output
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed May 29, 2023
1 parent a8b2986 commit 394e8da
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,14 @@ public boolean decompile(Path jarToDecompile) {
int dotIndex = jarToDecompile.getFileName().toString().indexOf('.');
String fileName = jarToDecompile.getFileName().toString().substring(0, dotIndex);
ProcessBuilder processBuilder = new ProcessBuilder(
Arrays.asList("java", "-jar", decompilerJar.toAbsolutePath().toString(),
Arrays.asList(
"java",
"-jar",
decompilerJar.toAbsolutePath().toString(),
"-rsy", // synthetic methods
"0",
"-rbr", // bridge methods
"0",
jarToDecompile.toAbsolutePath().toString(),
context.decompiledOutputDir.resolve(fileName).toAbsolutePath().toString()));
if (log.isDebugEnabled()) {
Expand Down

0 comments on commit 394e8da

Please sign in to comment.