Skip to content

Commit

Permalink
Merge pull request #3185 from HannesWell/fix-3182
Browse files Browse the repository at this point in the history
Only add @XbaseGenerated annotation if available
  • Loading branch information
cdietrich authored Sep 4, 2024
2 parents dbd0df1 + 0a37c3a commit 73bc96c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ protected void appendSyntheticDispatchMethods(XtendTypeDeclaration source, final
JvmOperation operation = deriveGenericDispatchOperationSignature(localOperations, target);
if (operation != null) {
dispatchHelper.markAsDispatcherFunction(operation);
if (generatorConfig.isUseXbaseGenerated()) {
if (generatorConfig.isUseXbaseGenerated() && typeReferences.findDeclaredType(XbaseGenerated.class, operation) != null) {
operation.getAnnotations().add(_annotationTypesBuilder.annotationRef(XbaseGenerated.class));
}
operation.setSimpleName(signature.getSimpleName());
Expand Down

0 comments on commit 73bc96c

Please sign in to comment.