Skip to content

Commit f4a5c5f

Browse files
authored
Merge pull request #15214 from gustavoharff/patch-02
Do not mark AST transformation methods as generated
2 parents 06e8208 + 7ccbddf commit f4a5c5f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/transform/AbstractMethodDecoratingTransformation.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import jakarta.annotation.PreDestroy
4747

4848
import org.grails.datastore.mapping.reflect.NameUtils
4949

50-
import static org.apache.groovy.ast.tools.AnnotatedNodeUtils.markAsGenerated
5150
import static org.codehaus.groovy.ast.ClassHelper.VOID_TYPE
5251
import static org.codehaus.groovy.ast.tools.GeneralUtils.args
5352
import static org.codehaus.groovy.ast.tools.GeneralUtils.block
@@ -352,7 +351,6 @@ abstract class AbstractMethodDecoratingTransformation extends AbstractGormASTTra
352351
renamedMethodNode.addAnnotations(methodNode.getAnnotations(TYPE_CHECKED_TYPE))
353352

354353
methodNode.setCode(null)
355-
markAsGenerated(classNode, renamedMethodNode)
356354
classNode.addMethod(renamedMethodNode)
357355

358356
// Use a dummy source unit to process the variable scopes to avoid the issue where this is run twice producing an error

0 commit comments

Comments
 (0)