From: Gerardo H. <ma...@us...> - 2007-03-01 00:50:57
|
Update of /cvsroot/jrman/drafts/src/org/jrman/geom In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1255/src/org/jrman/geom Modified Files: ClippingVolume.java Log Message: Compiles for Java 1.5 with -Xlint without any warning. Index: ClippingVolume.java =================================================================== RCS file: /cvsroot/jrman/drafts/src/org/jrman/geom/ClippingVolume.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ClippingVolume.java 26 Feb 2007 19:35:46 -0000 1.5 --- ClippingVolume.java 1 Mar 2007 00:50:24 -0000 1.6 *************** *** 26,30 **** public class ClippingVolume { ! private List planes = new ArrayList(); public void addPlane(Plane plane) { --- 26,30 ---- public class ClippingVolume { ! private List<Plane> planes = new ArrayList<Plane>(); public void addPlane(Plane plane) { *************** *** 34,39 **** public Plane.Side whereIs(BoundingVolume v) { boolean bothSides = false; ! for (int i = 0; i < planes.size(); i++) { ! Plane plane = (Plane) planes.get(i); Plane.Side side = v.whichSideOf(plane); if (side == Plane.Side.OUTSIDE) --- 34,38 ---- public Plane.Side whereIs(BoundingVolume v) { boolean bothSides = false; ! for (Plane plane: planes) { Plane.Side side = v.whichSideOf(plane); if (side == Plane.Side.OUTSIDE) |