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:37:11 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X c1cb4baef -> 6cc6afb32


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/6cc6afb3
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/6cc6afb3
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/6cc6afb3

Branch: refs/heads/GROOVY_2_4_X
Commit: 6cc6afb32b6dde5918566becd49ab31e98839590
Parents: c1cb4ba
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:36: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/6cc6afb3/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 11a7831..e7ac20d 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