groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: minor refactor
Date Fri, 29 Sep 2017 12:59:13 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 4888769de -> aa0782ee6


minor refactor


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

Branch: refs/heads/GROOVY_2_5_X
Commit: aa0782ee6d0b7570d372cfd39738e5f7ea6aca4a
Parents: 4888769
Author: paulk <paulk@asert.com.au>
Authored: Fri Sep 29 22:58:53 2017 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Fri Sep 29 22:58:53 2017 +1000

----------------------------------------------------------------------
 .../codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/aa0782ee/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
index f410f71..64c8c2e 100644
--- a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
+++ b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
@@ -487,7 +487,7 @@ public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport
{
                 variable = (VariableExpression) vexp.getAccessedVariable();
             }
             if (variable != null) {
-                ClassNode inferredType = getInferredTypeFromTempInfo(variable, variable.getNodeMetaData(StaticTypesMarker.INFERRED_TYPE));
+                ClassNode inferredType = getInferredTypeFromTempInfo(variable, (ClassNode)
variable.getNodeMetaData(StaticTypesMarker.INFERRED_TYPE));
                 if (inferredType != null && !inferredType.getName().equals("java.lang.Object"))
{
                     if (typeCheckingContext.getEnclosingBinaryExpression() != null) {
                         // TODO narrow this down to assignment


Mime
View raw message