aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-07-01 06:29:24 -0700
committerHarvey Harrison <[email protected]>2013-07-01 06:50:01 -0700
commitfbad5f1b7d04c1cf588e67f4fd00c04fe4f37d39 (patch)
tree8cbfc2f796606c57d2661b1f947290a9255d14c1 /src/classes/share
parent91a1754cae120129469c201023901185bc4526e7 (diff)
j3dcore: clean up some temp variable types in ViewSpecificGroupRetained
The local var vl is initialized on all paths, pull that to the front of the method. Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r--src/classes/share/javax/media/j3d/ViewSpecificGroupRetained.java39
1 files changed, 18 insertions, 21 deletions
diff --git a/src/classes/share/javax/media/j3d/ViewSpecificGroupRetained.java b/src/classes/share/javax/media/j3d/ViewSpecificGroupRetained.java
index 83b9a26..377da5b 100644
--- a/src/classes/share/javax/media/j3d/ViewSpecificGroupRetained.java
+++ b/src/classes/share/javax/media/j3d/ViewSpecificGroupRetained.java
@@ -696,44 +696,41 @@ void updateCachedInformation(int component, View view, int index) {
}
void setAuxData(SetLiveState s, int index, int hkIndex) {
- ArrayList vl;
+ ArrayList<View> vl = new ArrayList<View>();
ArrayList parentList = null;
int size = apiViewList.size();
if (s.viewLists != null) {
// System.err.println("=====> VSG: = "+this+" hkIndex = "+hkIndex+" s.viewLists = "+s.viewLists);
parentList = (ArrayList) s.viewLists.get(hkIndex);
if (parentList != null) {
- vl = new ArrayList();
- for (int i = 0; i < size; i++) {
- Object obj1 = apiViewList.get(i);
- // Get the intersection of the parentlist and this vsg's api list
- for (int j = 0; j < parentList.size(); j++) {
- if (obj1 == parentList.get(j)) {
- vl.add(obj1);
- break;
+ for (int i = 0; i < size; i++) {
+ View v = apiViewList.get(i);
+ // Get the intersection of the parentlist and this vsg's api list
+ for (int j = 0; j < parentList.size(); j++) {
+ if (v == parentList.get(j)) {
+ vl.add(v);
+ break;
+ }
+ }
}
- }
- }
}
else {
- vl = new ArrayList();
// Only include the non null ones in the apiViewList
for (int i = 0; i < size; i++) {
- Object obj = apiViewList.get(i);
- if (obj != null) {
- vl.add(obj);
- }
+ View v = apiViewList.get(i);
+ if (v != null) {
+ vl.add(v);
+ }
}
}
}
else {
- vl = new ArrayList();
// Only include the non null ones in the apiViewList
for (int i = 0; i < size; i++) {
- Object obj = apiViewList.get(i);
- if (obj != null) {
- vl.add(obj);
- }
+ View v = apiViewList.get(i);
+ if (v != null) {
+ vl.add(v);
+ }
}
}
if (parentList != null) {