groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: GROOVY-9051: The default constructor should be annotated with @Generated
Date Thu, 21 Mar 2019 21:23:22 GMT
This is an automated email from the ASF dual-hosted git repository.

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


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

commit 38e632ed6a4284ff8960c1a0fec2c8f3869d0fd5
Author: Paul King <paulk@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 c42fcc8..79c200e 100644
--- a/src/main/java/org/codehaus/groovy/classgen/Verifier.java
+++ b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
@@ -343,6 +343,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)
{


Mime
View raw message