groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Trivial refactoring: change the return type of methods related to enclosing constructor call
Date Tue, 05 Jun 2018 02:00:29 GMT
Repository: groovy
Updated Branches:
  refs/heads/master effb9d3da -> cd466ad9c


Trivial refactoring: change the return type of methods related to enclosing constructor call


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

Branch: refs/heads/master
Commit: cd466ad9c8576f2cd68f0e925e3c0b190e55f085
Parents: effb9d3
Author: sunlan <sunlan@apache.org>
Authored: Tue Jun 5 10:00:18 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Tue Jun 5 10:00:18 2018 +0800

----------------------------------------------------------------------
 .../org/codehaus/groovy/transform/stc/TypeCheckingContext.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/cd466ad9/src/main/java/org/codehaus/groovy/transform/stc/TypeCheckingContext.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/transform/stc/TypeCheckingContext.java b/src/main/java/org/codehaus/groovy/transform/stc/TypeCheckingContext.java
index 3d344f2..77cb289 100644
--- a/src/main/java/org/codehaus/groovy/transform/stc/TypeCheckingContext.java
+++ b/src/main/java/org/codehaus/groovy/transform/stc/TypeCheckingContext.java
@@ -390,7 +390,7 @@ public class TypeCheckingContext {
      * Pops a constructor call from the enclosing constructor call stack.
      * @return the popped call
      */
-    public Expression popEnclosingConstructorCall() {
+    public ConstructorCallExpression popEnclosingConstructorCall() {
         return enclosingConstructorCalls.removeFirst();
     }
 
@@ -399,7 +399,7 @@ public class TypeCheckingContext {
      * if there's no such element.
      * @return the enclosing constructor call on top of the stack, or null if no such element.
      */
-    public Expression getEnclosingConstructorCall() {
+    public ConstructorCallExpression getEnclosingConstructorCall() {
         if (enclosingConstructorCalls.isEmpty()) return null;
         return enclosingConstructorCalls.getFirst();
     }
@@ -409,7 +409,7 @@ public class TypeCheckingContext {
      * element is the top of the stack, that is to say the currently visited constructor
call.
      * @return an immutable list of enclosing constructor calls.
      */
-    public List<Expression> getEnclosingConstructorCalls() {
+    public List<ConstructorCallExpression> getEnclosingConstructorCalls() {
         return Collections.unmodifiableList(enclosingConstructorCalls);
     }
 


Mime
View raw message