diff options
author | Harvey Harrison <[email protected]> | 2012-01-07 23:11:28 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-07 23:11:28 -0800 |
commit | 98dc46351d6f901daa2e1aae5a826513c7777d44 (patch) | |
tree | e68c1582f4ad94cfcf15a77a6a114fe332961450 /src/classes | |
parent | 483dd25244c25f7fd6345d0ef6499679b9588748 (diff) |
j3dcore: remove unneeded casting, type annotation in RasterRetained
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/RasterRetained.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/classes/share/javax/media/j3d/RasterRetained.java b/src/classes/share/javax/media/j3d/RasterRetained.java index 1400f69..88ca9ab 100644 --- a/src/classes/share/javax/media/j3d/RasterRetained.java +++ b/src/classes/share/javax/media/j3d/RasterRetained.java @@ -127,14 +127,13 @@ class RasterRetained extends GeometryRetained { if(source.isLive()) { //update the Shape3Ds that refer to this Raster int un = userLists.size(); - ArrayList shapeList; Shape3DRetained ms, shape; int sn; for(int i = 0; i < un; i++) { - shapeList = (ArrayList)userLists.get(i); + ArrayList<Shape3DRetained> shapeList = userLists.get(i); sn = shapeList.size(); for(int j = 0; j < sn; j++) { - ms = (Shape3DRetained)shapeList.get(j); + ms = shapeList.get(j); shape = (Shape3DRetained)ms.sourceNode; shape.setBoundsAutoCompute(false); shape.setBounds(geoBounds); @@ -421,8 +420,7 @@ class RasterRetained extends GeometryRetained { m[i] = new J3dMessage(); m[i].type = J3dMessage.GEOMETRY_CHANGED; m[i].threads = threads; - m[i].args[0] = Shape3DRetained. - getGeomAtomsArray((ArrayList)userLists.get(i)); + m[i].args[0] = Shape3DRetained.getGeomAtomsArray(userLists.get(i)); m[i].args[1] = this; Object[] obj = new Object[2]; obj[0] = arg1; @@ -481,7 +479,7 @@ class RasterRetained extends GeometryRetained { // setup Texture pipe. cv.updateTextureForRaster(texture); - cv.textureFill(this, winCoord, (float) devCoordZ, alpha); + cv.textureFill(this, winCoord, devCoordZ, alpha); // Restore texture pipe. cv.restoreTextureBin(); |