groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/02: Trivial refactoring: remove redundant `super()`
Date Fri, 11 Oct 2019 14:34:31 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 1a14b75e9681506e851e1d87a1c0e3b0f5a8d031
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Fri Oct 11 22:03:27 2019 +0800

    Trivial refactoring: remove redundant `super()`
    
    (cherry picked from commit a7eb61f10d55af78c8b9b8ddb387b3466456be89)
---
 src/main/java/org/codehaus/groovy/ast/expr/EmptyExpression.java | 4 +---
 src/main/java/org/codehaus/groovy/ast/stmt/EmptyStatement.java  | 5 +----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/ast/expr/EmptyExpression.java b/src/main/java/org/codehaus/groovy/ast/expr/EmptyExpression.java
index c877f56..ae7d6c3 100644
--- a/src/main/java/org/codehaus/groovy/ast/expr/EmptyExpression.java
+++ b/src/main/java/org/codehaus/groovy/ast/expr/EmptyExpression.java
@@ -37,9 +37,7 @@ public class EmptyExpression extends Expression {
     /**
      * @see EmptyExpression#INSTANCE
      */
-    public EmptyExpression() {
-        super();
-    }
+    public EmptyExpression() {}
 
     @Override
     public Expression transformExpression(ExpressionTransformer transformer) {
diff --git a/src/main/java/org/codehaus/groovy/ast/stmt/EmptyStatement.java b/src/main/java/org/codehaus/groovy/ast/stmt/EmptyStatement.java
index 2353127..1199e33 100644
--- a/src/main/java/org/codehaus/groovy/ast/stmt/EmptyStatement.java
+++ b/src/main/java/org/codehaus/groovy/ast/stmt/EmptyStatement.java
@@ -29,12 +29,9 @@ public class EmptyStatement extends Statement {
     /**
      * @see EmptyStatement#INSTANCE
      */
-    public EmptyStatement() {
-        super();
-    }
+    public EmptyStatement() {}
 
     protected EmptyStatement(Map<?, ?> metaDataMap) {
-        super();
         super.setMetaDataMap(metaDataMap);
     }
 


Mime
View raw message