groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Make EmptyStatement singleton
Date Wed, 06 Dec 2017 01:41:18 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 3474a3919 -> dd8a7cb03


Make EmptyStatement singleton


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/dd8a7cb0
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/dd8a7cb0
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/dd8a7cb0

Branch: refs/heads/master
Commit: dd8a7cb036cf4ce2115b6f2b6bca39b916329205
Parents: 3474a39
Author: sunlan <sunlan@apache.org>
Authored: Wed Dec 6 09:41:12 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Wed Dec 6 09:41:12 2017 +0800

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/ast/stmt/EmptyStatement.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/dd8a7cb0/src/main/org/codehaus/groovy/ast/stmt/EmptyStatement.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/ast/stmt/EmptyStatement.java b/src/main/org/codehaus/groovy/ast/stmt/EmptyStatement.java
index 3823eb8..2ef78af 100644
--- a/src/main/org/codehaus/groovy/ast/stmt/EmptyStatement.java
+++ b/src/main/org/codehaus/groovy/ast/stmt/EmptyStatement.java
@@ -36,8 +36,8 @@ public class EmptyStatement extends Statement {
     /**
      * use EmptyStatement.INSTANCE instead
      */
-    @Deprecated
-    public EmptyStatement() {
+//    @Deprecated
+    private EmptyStatement() {
         // org.spockframework.compiler.ConditionRewriter will create EmptyStatement via calling
the constructor
         // so we keep the constructor for the time being, but it will be removed finally.
     }


Mime
View raw message