From eb249ad45a4794f2ff21269a3a6c8594b50d0b97 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 1 Jul 2013 07:23:22 -0700 Subject: j3dcore: annotate some variables in the insertNodes/removeNodes message handlers Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/RenderBin.java | 10 ++++------ src/classes/share/javax/media/j3d/SoundScheduler.java | 8 ++++---- src/classes/share/javax/media/j3d/SoundStructure.java | 16 ++++++++-------- 3 files changed, 16 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/classes/share/javax/media/j3d/RenderBin.java b/src/classes/share/javax/media/j3d/RenderBin.java index b09ec69..31f357f 100644 --- a/src/classes/share/javax/media/j3d/RenderBin.java +++ b/src/classes/share/javax/media/j3d/RenderBin.java @@ -6675,7 +6675,7 @@ void addGeometryDlist(RenderAtomListInfo ra) { void insertNodes(J3dMessage m) { ArrayList viewScopedNodes = (ArrayList) m.args[3]; - ArrayList scopedNodesViewList = (ArrayList) m.args[4]; + ArrayList> scopedNodesViewList = (ArrayList>)m.args[4]; int i; Object[] nodes = (Object[])m.args[0]; for (Object n : nodes) { @@ -6715,10 +6715,9 @@ void insertNodes(J3dMessage m) { // Handle ViewScoped Nodes if (viewScopedNodes != null) { int size = viewScopedNodes.size(); - int vlsize; for (i = 0; i < size; i++) { NodeRetained n = (NodeRetained)viewScopedNodes.get(i); - ArrayList vl = (ArrayList)scopedNodesViewList.get(i); + ArrayList vl = scopedNodesViewList.get(i); // If the node object is scoped to this view, then .. if (vl.contains(view)) { if (n instanceof LightRetained) { @@ -6757,7 +6756,7 @@ void insertNodes(J3dMessage m) { void removeNodes(J3dMessage m) { ArrayList viewScopedNodes = (ArrayList) m.args[3]; - ArrayList scopedNodesViewList = (ArrayList) m.args[4]; + ArrayList> scopedNodesViewList = (ArrayList>)m.args[4]; int i; Object[] nodes = (Object[])m.args[0]; for (int n = 0; n < nodes.length; n++) { @@ -6805,10 +6804,9 @@ void removeNodes(J3dMessage m) { // Handle ViewScoped Nodes if (viewScopedNodes != null) { int size = viewScopedNodes.size(); - int vlsize; for (i = 0; i < size; i++) { NodeRetained node = (NodeRetained)viewScopedNodes.get(i); - ArrayList vl = (ArrayList)scopedNodesViewList.get(i); + ArrayList vl = scopedNodesViewList.get(i); // If the node object is scoped to this view, then .. if (vl.contains(view)) { if (node instanceof LightRetained) { diff --git a/src/classes/share/javax/media/j3d/SoundScheduler.java b/src/classes/share/javax/media/j3d/SoundScheduler.java index 86d2416..892ad3b 100644 --- a/src/classes/share/javax/media/j3d/SoundScheduler.java +++ b/src/classes/share/javax/media/j3d/SoundScheduler.java @@ -327,7 +327,7 @@ class SoundScheduler extends J3dStructure { void insertNodes(J3dMessage m) { Object[] nodes = (Object[])m.args[0]; ArrayList viewScopedNodes = (ArrayList)m.args[3]; - ArrayList scopedNodesViewList = (ArrayList)m.args[4]; + ArrayList> scopedNodesViewList = (ArrayList>)m.args[4]; Object node; for (int i=0; i vl = scopedNodesViewList.get(i); // If the node object is scoped to this view, then .. if (vl.contains(view)) { if (node instanceof SoundRetained) { @@ -397,7 +397,7 @@ class SoundScheduler extends J3dStructure { void removeNodes(J3dMessage m) { Object[] nodes = (Object[])m.args[0]; ArrayList viewScopedNodes = (ArrayList)m.args[3]; - ArrayList scopedNodesViewList = (ArrayList)m.args[4]; + ArrayList> scopedNodesViewList = (ArrayList>)m.args[4]; Object node; for (int i=0; i vl = scopedNodesViewList.get(i); // If the node object is scoped to this view, then .. if (vl.contains(view)) { if (node instanceof SoundRetained) { diff --git a/src/classes/share/javax/media/j3d/SoundStructure.java b/src/classes/share/javax/media/j3d/SoundStructure.java index 2dac8b0..8c65c43 100644 --- a/src/classes/share/javax/media/j3d/SoundStructure.java +++ b/src/classes/share/javax/media/j3d/SoundStructure.java @@ -167,7 +167,7 @@ class SoundStructure extends J3dStructure { void insertNodes(J3dMessage m) { Object[] nodes = (Object[])m.args[0]; ArrayList viewScopedNodes = (ArrayList)m.args[3]; - ArrayList scopedNodesViewList = (ArrayList)m.args[4]; + ArrayList> scopedNodesViewList = (ArrayList>)m.args[4]; Object node; for (int i=0; i vl = scopedNodesViewList.get(i); int vsize = vl.size(); if (node instanceof SoundRetained) { ((SoundRetained)node).isViewScoped = true; for (int k = 0; k < vsize; k++) { - View view = (View) vl.get(k); + View view = vl.get(k); addScopedSound((SoundRetained) node, view); } } else if (node instanceof SoundscapeRetained) { ((SoundscapeRetained)node).isViewScoped = true; for (int k = 0; k < vsize; k++) { - View view = (View) vl.get(k); + View view = vl.get(k); addScopedSoundscape((SoundscapeRetained) node, view); } } @@ -256,7 +256,7 @@ class SoundStructure extends J3dStructure { void removeNodes(J3dMessage m) { Object[] nodes = (Object[])m.args[0]; ArrayList viewScopedNodes = (ArrayList)m.args[3]; - ArrayList scopedNodesViewList = (ArrayList)m.args[4]; + ArrayList> scopedNodesViewList = (ArrayList>)m.args[4]; Object node; for (int i=0; i vl = scopedNodesViewList.get(i); // If the node object is scoped to this view, then .. int vsize = vl.size(); if (node instanceof SoundRetained) { ((SoundRetained)node).isViewScoped = false; for (int k = 0; k < vsize; k++) { - View view = (View) vl.get(k); + View view = vl.get(k); deleteScopedSound((SoundRetained) node, view); } } else if (node instanceof SoundscapeRetained) { ((SoundscapeRetained)node).isViewScoped = false; for (int k = 0; k < vsize; k++) { - View view = (View) vl.get(k); + View view = vl.get(k); deleteScopedSoundscape((SoundscapeRetained) node, view); } } -- cgit v1.2.3