This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new f83238c  GROOVY-9051: The default constructor should be annotated with 
@Generated
f83238c is described below

commit f83238c2cfa6c7c77e211ae8a166e3c202e5554d
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Mar 22 07:22:54 2019 +1000

    GROOVY-9051: The default constructor should be annotated with @Generated
---
 src/main/java/org/codehaus/groovy/classgen/Verifier.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/codehaus/groovy/classgen/Verifier.java 
b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
index bf2a981..bd4e40f 100644
--- a/src/main/java/org/codehaus/groovy/classgen/Verifier.java
+++ b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
@@ -344,6 +344,7 @@ public class Verifier implements GroovyClassVisitor, 
Opcodes {
         constructor.setSourcePosition(node);
         constructor.setHasNoRealSourcePosition(true);
         node.addConstructor(constructor);
+        markAsGenerated(node, constructor);
     }
 
     private void addStaticMetaClassField(final ClassNode node, final String 
classInternalName) {

Reply via email to