From c484d10a48c0b94dd2f08311ed260e2537e07c0c Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 16 Mar 2010 23:26:27 +0000 Subject: [PATCH] Fascinating. This class contains both toArray(ArrayList lits) and toArray(ArrayList list) which erase to the same argument types. They differ in return types which means that the JVM recognizes them as different, so when the compiler resolved that it needed to call "toArray(Ljava/util/ArrayList;)[F", it was not a problem that "toArray(Ljava/util/ArrayList;)[I" also existed. javac 1.7 is a bit stricter about this sort of thing and issues a concerned warning message. Since the ArrayList version is not used, I'm nixing it to avoid confusion. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@903 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/java/com/threerings/jme/tools/ModelDef.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/java/com/threerings/jme/tools/ModelDef.java b/src/java/com/threerings/jme/tools/ModelDef.java index d0d7157d..c4c270a5 100644 --- a/src/java/com/threerings/jme/tools/ModelDef.java +++ b/src/java/com/threerings/jme/tools/ModelDef.java @@ -948,16 +948,6 @@ public class ModelDef return true; } - /** Converts a boxed Integer list to an unboxed int array. */ - protected static int[] toArray (ArrayList list) - { - int[] array = new int[list.size()]; - for (int ii = 0, nn = list.size(); ii < nn; ii++) { - array[ii] = list.get(ii); - } - return array; - } - /** Converts a boxed Float list to an unboxed float array. */ protected static float[] toArray (ArrayList list) {