You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/12/06 01:41:18 UTC

groovy git commit: Make EmptyStatement singleton

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 <su...@apache.org>
Authored: Wed Dec 6 09:41:12 2017 +0800
Committer: sunlan <su...@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.
     }