Github user blackdrag commented on a diff in the pull request:
https://github.com/apache/groovy/pull/282#discussion_r107541243
--- Diff: src/main/org/codehaus/groovy/vmplugin/v7/IndyArrayAccess.java ---
@@ -96,29 +96,6 @@ private static MethodHandle buildSetter(Class
arrayClass){
return handle;
}
- private static int getLength(Object array) {
- if (array instanceof Object[]) return ((Object[])array).length;
- if (array instanceof boolean[]) return ((boolean[])array).length;
- if (array instanceof byte[]) return ((byte[])array).length;
- if (array instanceof char[]) return ((char[])array).length;
- if (array instanceof short[]) return ((short[])array).length;
- if (array instanceof int[]) return ((int[])array).length;
- if (array instanceof long[]) return ((long[])array).length;
- if (array instanceof float[]) return ((float[])array).length;
- if (array instanceof double[]) return ((double[])array).length;
- return 0;
- }
-
- private static int normalizeIndex(Object array, int i) {
--- End diff --
normalizeIndex is used via MethodHandle in line 39. you cannot remove these
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---