aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-01-27 23:25:30 -0800
committerHarvey Harrison <[email protected]>2013-01-27 23:25:30 -0800
commita92f965a9c20e583adbe9299cb998fd92a89e584 (patch)
treeedeb78e11b4318e62933a0e7efc54cc9ec80bf29 /src/classes/share
parent047ccfb9f27edb75dbe3046378511d1968d98be0 (diff)
j3dcore: annotate switchLevels list in SwitchRetained
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r--src/classes/share/javax/media/j3d/SwitchRetained.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/classes/share/javax/media/j3d/SwitchRetained.java b/src/classes/share/javax/media/j3d/SwitchRetained.java
index bcf48a4..b7af900 100644
--- a/src/classes/share/javax/media/j3d/SwitchRetained.java
+++ b/src/classes/share/javax/media/j3d/SwitchRetained.java
@@ -60,8 +60,8 @@ class SwitchRetained extends GroupRetained implements TargetsInterface
// A boolean indication that something changed
boolean isDirty = true;
- // switchLevel per key, used in traversing switch children
- ArrayList switchLevels = new ArrayList(1);
+// switchLevel per key, used in traversing switch children
+ArrayList<Integer> switchLevels = new ArrayList<Integer>(1);
// key which identifies a unique path from a locale to this switch link
HashKey switchKey = new HashKey();
@@ -280,12 +280,12 @@ ArrayList<ArrayList<SwitchState>> childrenSwitchStates = null;
if (inSharedGroup) {
for (i=0; i<localToVworldKeys.length; i++) {
- switchLevel = ((Integer)switchLevels.get(i)).intValue();
+ switchLevel = switchLevels.get(i).intValue();
traverseSwitchChild(child, localToVworldKeys[i], i, this,
false, false, switchOn, switchLevel, updateList);
}
} else {
- switchLevel = ((Integer)switchLevels.get(0)).intValue();
+ switchLevel = switchLevels.get(0).intValue();
traverseSwitchChild(child, null, 0, this, false, false,
switchOn, switchLevel, updateList);
}
@@ -593,7 +593,7 @@ ArrayList<ArrayList<SwitchState>> childrenSwitchStates = null;
// first traverse this node's child
if (inSharedGroup) {
for (j=0; j<localToVworldKeys.length; j++) {
- switchLevel = ((Integer)switchLevels.get(j)).intValue();
+ switchLevel = switchLevels.get(j).intValue();
switchRoot = (switchLevel == 0)? this : null;
size = children.size();
for (i=0; i<size; i++) {
@@ -603,7 +603,7 @@ ArrayList<ArrayList<SwitchState>> childrenSwitchStates = null;
}
}
} else {
- switchLevel = ((Integer)switchLevels.get(0)).intValue();
+ switchLevel = switchLevels.get(0).intValue();
switchRoot = (switchLevel == 0)? this : null;
size = children.size();
for (i=0; i<size; i++) {