Commits

bondike  committed 99d7292

List<Float> rather than generic ArrayList

  • Participants
  • Parent commits 2bf19fe
  • Branches dev-1

Comments (0)

Files changed (1)

File trunk/Slick/src/org/newdawn/slick/geom/Polygon.java

 package org.newdawn.slick.geom;
 
 import java.util.ArrayList;
-import java.util.Arrays;
+import java.util.List;
 
 /**
  * A polygon implementation meeting the <code>Shape</code> contract. 
     		return;
     	}
     	
-        ArrayList tempPoints = new ArrayList();
+        List<Float> tempPoints = new ArrayList<Float>();
         for(int i=0;i<points.length;i++) {
             tempPoints.add(new Float(points[i]));
         }
         int length = tempPoints.size();
         points = new float[length];
         for(int i=0;i<length;i++) {
-            points[i] = ((Float)tempPoints.get(i)).floatValue();
+            points[i] = tempPoints.get(i).floatValue();
         }
         if(x > maxX) {
             maxX = x;