Skip to content

Commit

Permalink
don't handle anonymous class in constructorCallToJavaExpression either
Browse files Browse the repository at this point in the history
type arguments are already serialized by appendConstructedTypeName now
  • Loading branch information
LorenzoBettini committed Dec 31, 2023
1 parent 3cae7d2 commit fdad984
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ protected void constructorCallToJavaExpression(final XConstructorCall expr, ITre
}
ITreeAppendable typeAppendable = appendableWithNewKeyword.trace(expr, XbasePackage.Literals.XCONSTRUCTOR_CALL__CONSTRUCTOR, 0);
appendConstructedTypeName(expr, typeAppendable);
if (hasTypeArguments || (expr.isAnonymousClassConstructorCall() && !explicitTypeArguments.isEmpty() && ((JvmGenericType) constructor.getDeclaringType()).isAnonymous())) {
if (hasTypeArguments) {
if (typeArguments.isEmpty()) {
LightweightTypeReference createdType = resolvedTypes.getActualType(expr);
typeArguments = createdType.getNamedType().getTypeArguments();
Expand Down

0 comments on commit fdad984

Please sign in to comment.