Skip to content

Commit

Permalink
simplified constructorCallToJavaExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Jan 1, 2024
1 parent c4491d4 commit c8b774d
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ protected boolean needSyntheticSelfVariable(XClosure closure, LightweightTypeRef
@Override
protected void constructorCallToJavaExpression(final XConstructorCall expr, ITreeAppendable b) {
if (!expr.isAnonymousClassConstructorCall() ||
!((JvmGenericType) expr.getConstructor().getDeclaringType()).isAnonymous() ||
XtendCompilerUtil.canCompileToJavaAnonymousClass((AnonymousClass) expr.eContainer())) {
super.constructorCallToJavaExpression(expr, b);
return;
Expand Down

0 comments on commit c8b774d

Please sign in to comment.