Skip to content

Commit

Permalink
Wrap long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Feb 5, 2025
1 parent f39e689 commit 02248b7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1371,14 +1371,16 @@ public void endVisit(LambdaExpression x, BlockScope blockScope) {
createLambdaConstructor(x, info, innerLambdaClass, ctor, locals, synthArgs);

// the method containing the lambda expression that the anonymous inner class delegates to,
// it corresponds directly to the lambda expression itself, produced by JDT as a helper method
// it corresponds directly to the lambda expression itself, produced by JDT as a helper
// method
JMethod lambdaMethod = createLambdaMethod(x);

// Now that we've added an implementation method for the lambda, we must create the inner
// class method that implements the target interface type that delegates to the target lambda
// method
// class method that implements the target interface type that delegates to the target
// lambda method
JMethod samMethod = new JMethod(info, interfaceMethod.getName(), innerLambdaClass,
interfaceMethod.getType(), false, false, true, interfaceMethod.getAccess());
interfaceMethod.getType(), false, false, true,
interfaceMethod.getAccess());
samMethod.setSynthetic();

// implements the SAM, e.g. Callback.onCallback(), Runnable.run(), etc
Expand Down

0 comments on commit 02248b7

Please sign in to comment.