groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject groovy git commit: StaticTypesCallSiteWriter#makeGetPropertySite: remove unnecessary check for isXxx getter method on Object
Date Sat, 08 Oct 2016 16:36:38 GMT
Repository: groovy
Updated Branches:
  refs/heads/master d0b513ae0 -> 9e25a9a4a


StaticTypesCallSiteWriter#makeGetPropertySite: remove unnecessary check for isXxx getter method
on Object


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

Branch: refs/heads/master
Commit: 9e25a9a4a9ed7e4a66d83867c6381d421447eece
Parents: d0b513a
Author: Shil Sinha <shils@apache.org>
Authored: Sat Oct 8 12:23:12 2016 -0400
Committer: Shil Sinha <shils@apache.org>
Committed: Sat Oct 8 12:23:52 2016 -0400

----------------------------------------------------------------------
 .../groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java         | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/9e25a9a4/src/main/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java b/src/main/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
index 9a62622..a2900b4 100644
--- a/src/main/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
+++ b/src/main/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
@@ -171,9 +171,6 @@ public class StaticTypesCallSiteWriter extends CallSiteWriter implements
Opcodes
             if (getterMethod == null) {
                 getterMethod = OBJECT_TYPE.getGetterMethod(getterName);
             }
-            if (getterMethod == null) {
-                getterMethod = OBJECT_TYPE.getGetterMethod(altGetterName);
-            }
 
             if (getterMethod != null) {
                 MethodCallExpression call = new MethodCallExpression(


Mime
View raw message