You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by sh...@apache.org on 2016/10/08 16:36:38 UTC

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

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 <sh...@apache.org>
Authored: Sat Oct 8 12:23:12 2016 -0400
Committer: Shil Sinha <sh...@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(