From c9227e826c6c0ec4fa7c743b2de69893a8a273da Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Thu, 31 Jan 2013 23:22:02 -0800 Subject: j3dcore: annotate lists in SetLiveState related to OrderedGroupRetained Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/GroupRetained.java | 8 ++++---- src/classes/share/javax/media/j3d/SetLiveState.java | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/classes') diff --git a/src/classes/share/javax/media/j3d/GroupRetained.java b/src/classes/share/javax/media/j3d/GroupRetained.java index db0c1a8..1b3b387 100644 --- a/src/classes/share/javax/media/j3d/GroupRetained.java +++ b/src/classes/share/javax/media/j3d/GroupRetained.java @@ -1723,11 +1723,11 @@ synchronized void setAltAppScope() { if (this instanceof OrderedGroupRetained && linkNode == null) { // set this regardless of refCount - s.ogList.add(this); + OrderedGroupRetained og = (OrderedGroupRetained)this; + s.ogList.add(og); s.ogChildIdList.add(new Integer(childIndex)); - s.ogCIOList.add(this); + s.ogCIOList.add(og); int[] newArr = null; - OrderedGroupRetained og = (OrderedGroupRetained)this; if(og.userChildIndexOrder != null) { newArr = new int[og.userChildIndexOrder.length]; System.arraycopy(og.userChildIndexOrder, 0, newArr, @@ -2710,7 +2710,7 @@ synchronized void setAltAppScope() { if ((refCount+1) == s.refCount) { //only need to do it once if in shared group. Add //all the children to the list of OG_REMOVED message - s.ogList.add(this); + s.ogList.add(og); s.ogChildIdList.add(new Integer(i)); } s.orderedPaths = og.childrenOrderedPaths.get(i); diff --git a/src/classes/share/javax/media/j3d/SetLiveState.java b/src/classes/share/javax/media/j3d/SetLiveState.java index 11b2cfa..24ee2af 100644 --- a/src/classes/share/javax/media/j3d/SetLiveState.java +++ b/src/classes/share/javax/media/j3d/SetLiveState.java @@ -109,13 +109,13 @@ ArrayList> altAppearances = null; ArrayList orderedPaths = null; - ArrayList ogList = new ArrayList(5); - ArrayList ogChildIdList = new ArrayList(5); - ArrayList ogOrderedIdList = new ArrayList(5); - // ogCIOList contains a list of OG with affected child index order. - ArrayList ogCIOList = new ArrayList(5); - // ogCIOTableList contains a list of affected child index order. - ArrayList ogCIOTableList = new ArrayList(5); +ArrayList ogList = new ArrayList(5); +ArrayList ogChildIdList = new ArrayList(5); +ArrayList ogOrderedIdList = new ArrayList(5); +// ogCIOList contains a list of OG with affected child index order. +ArrayList ogCIOList = new ArrayList(5); +// ogCIOTableList contains a list of affected child index order. +ArrayList ogCIOTableList = new ArrayList(5); /** * List of BranchGroup from this node to the root of tree This is used by -- cgit v1.2.3