From commits-return-8913-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Mon Jul 22 03:01:39 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E5A62180672 for ; Mon, 22 Jul 2019 05:01:38 +0200 (CEST) Received: (qmail 71507 invoked by uid 500); 22 Jul 2019 03:01:38 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 71493 invoked by uid 99); 22 Jul 2019 03:01:38 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2019 03:01:38 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 0AE9B85E5B; Mon, 22 Jul 2019 03:01:38 +0000 (UTC) Date: Mon, 22 Jul 2019 03:01:37 +0000 To: "commits@groovy.apache.org" Subject: [groovy] branch master updated: Add `CompileStatic` annotation to synthetic method nodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <156376449791.14629.4298181596397926749@gitbox.apache.org> From: sunlan@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: groovy X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: db0c3724312f0ac59c59c1d42f4f34ef46d609ab X-Git-Newrev: 99f54381f35f57c229e691e9d7d4fc7b49069bab X-Git-Rev: 99f54381f35f57c229e691e9d7d4fc7b49069bab X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. sunlan 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 99f5438 Add `CompileStatic` annotation to synthetic method nodes 99f5438 is described below commit 99f54381f35f57c229e691e9d7d4fc7b49069bab Author: Daniel.Sun AuthorDate: Mon Jul 22 07:15:46 2019 +0800 Add `CompileStatic` annotation to synthetic method nodes --- .../classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java index 9d727f1..0343ea2 100644 --- a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java +++ b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java @@ -210,6 +210,7 @@ public class StaticTypesMethodReferenceExpressionWriter extends MethodReferenceE ); syntheticMethodNode.addAnnotation(new AnnotationNode(ClassHelper.make(Generated.class))); + syntheticMethodNode.addAnnotation(new AnnotationNode(ClassHelper.make(groovy.transform.CompileStatic.class))); return syntheticMethodNode; } @@ -239,6 +240,7 @@ public class StaticTypesMethodReferenceExpressionWriter extends MethodReferenceE ); syntheticMethodNode.addAnnotation(new AnnotationNode(ClassHelper.make(Generated.class))); + syntheticMethodNode.addAnnotation(new AnnotationNode(ClassHelper.make(groovy.transform.CompileStatic.class))); return syntheticMethodNode; }