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/parrot Commit: 9e25a9a4a9ed7e4a66d83867c6381d421447eece Parents: d0b513a Author: Shil Sinha <[email protected]> Authored: Sat Oct 8 12:23:12 2016 -0400 Committer: Shil Sinha <[email protected]> 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(
