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 e2e66a7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 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 Expand Up @@ -1902,8 +1904,8 @@ public void endVisit(ReferenceExpression x, BlockScope blockScope) {
* [x] denotes optional, depending on context of whether outer this scope is needed.
*/

// Resolve the reference expression to make sure the declaring class of the method is resolved
// to the right type.
// Resolve the reference expression to make sure the declaring class of the method is
// resolved to the right type.
x.resolve(blockScope);
// Calculate what type this reference is going to bind to, and what single abstract method
TypeBinding binding = x.expectedType();
Expand Down

0 comments on commit e2e66a7

Please sign in to comment.