From 00b7386e24fa687cb81f0a08a5088ea81ff9b8d0 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 3 Jan 2012 23:22:40 -0800 Subject: j3dcore: add type annotations to RenderBin.sBinUpdateList and .tbUpdateList Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/RenderBin.java | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/classes/share/javax/media/j3d/RenderBin.java b/src/classes/share/javax/media/j3d/RenderBin.java index 655be4b..220d833 100644 --- a/src/classes/share/javax/media/j3d/RenderBin.java +++ b/src/classes/share/javax/media/j3d/RenderBin.java @@ -71,17 +71,17 @@ ArrayList lightMessageList = new ArrayList(5); ArrayList rmUpdateList = new ArrayList(); ArrayList aBinUpdateList = new ArrayList(); - /** - * List of ShaderBin that are soleUser that - * needs to have its components updated @updateObject time - */ - ArrayList sBinUpdateList = new ArrayList(); +/** + * List of ShaderBin that are soleUser that needs to have its components updated @updateObject + * time + */ +ArrayList sBinUpdateList = new ArrayList(); - /** - * List of TextureBin that are soleUser that - * needs to have its components updated @updateObject time - */ - ArrayList tbUpdateList = new ArrayList(); +/** + * List of TextureBin that are soleUser that needs to have its components + * updated @updateObject time + */ +ArrayList tbUpdateList = new ArrayList(); /** * List of Bins that are soleUser that have new renderAtom @@ -545,7 +545,7 @@ ArrayList aBinUpdateList = new ArrayList(); if ((size = sBinUpdateList.size()) > 0) { for (i = 0; i < size; i++) { - ShaderBin sbin = (ShaderBin)sBinUpdateList.get(i); + ShaderBin sbin = sBinUpdateList.get(i); sbin.updateNodeComponent(); } } @@ -555,14 +555,14 @@ ArrayList aBinUpdateList = new ArrayList(); TextureBin tb; size = tbUpdateList.size(); for (i = 0; i < size; i++) { - tb = (TextureBin) tbUpdateList.get(i); + tb = tbUpdateList.get(i); tb.updateNodeComponent(); } // do another pass to re-sort TextureBin based on the // texture in the first texture unit state for (i = 0; i < size; i++) { - tb = (TextureBin) tbUpdateList.get(i); + tb = tbUpdateList.get(i); // Bug Id : 4701430 - Have to be sure tb.shaderBin is // not equal to null. This is a temporary fix for j3d1.3. if (((tb.tbFlag & TextureBin.RESORT) != 0) && -- cgit v1.2.3