Skip to content

Commit

Permalink
Only add @XbaseGenerated annotation if available
Browse files Browse the repository at this point in the history
Fixes #3182
  • Loading branch information
HannesWell committed Sep 3, 2024
1 parent 197f6cc commit 0a37c3a
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 0a37c3a

Please sign in to comment.