Skip to content

Commit

Permalink
get method references to decompile correctly again
Browse files Browse the repository at this point in the history
  • Loading branch information
tildejustin committed Dec 24, 2023
1 parent 5ebeba6 commit f3509c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jetbrains/java/decompiler/main/ClassWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ public void classLambdaToJava(ClassNode node, TextBuffer buffer, Exprent method_
MethodDescriptor md_lambda = MethodDescriptor.parseDescriptor(node.lambdaInformation.method_descriptor);

boolean simpleLambda = false;
boolean written = false;

if (!lambdaToAnonymous) {
RootStatement root = wrapper.getMethodWrapper(mt.getName(), mt.getDescriptor()).root;
boolean written = false;
if (DecompilerContext.getOption(IFernflowerPreferences.MARK_CORRESPONDING_SYNTHETICS)) {
buffer.append("/* ")
.appendMethod(node.lambdaInformation.content_method_name,
Expand Down Expand Up @@ -313,7 +313,7 @@ public void classLambdaToJava(ClassNode node, TextBuffer buffer, Exprent method_
}
}

if (!simpleLambda) {
if ((!simpleLambda && !written) || lambdaToAnonymous) {
buffer.append(" {").appendLineSeparator();

methodLambdaToJava(node, wrapper, mt, buffer, indent + 1, !lambdaToAnonymous);
Expand Down

0 comments on commit f3509c5

Please sign in to comment.