diff options
author | Harvey Harrison <[email protected]> | 2012-01-08 00:18:48 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-08 00:18:48 -0800 |
commit | 644d08af95cf6d0e008763965ac1af3cd7127f6b (patch) | |
tree | fbcda79be25ede8d20afbfe9736b2d87f449606f /src/classes/share | |
parent | 13e43624a7bcb30e42af791f9ee88711e48ed1d3 (diff) |
j3dcore: small annotations in VirtualUniverse
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/VirtualUniverse.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/classes/share/javax/media/j3d/VirtualUniverse.java b/src/classes/share/javax/media/j3d/VirtualUniverse.java index ae892b0..96bac95 100644 --- a/src/classes/share/javax/media/j3d/VirtualUniverse.java +++ b/src/classes/share/javax/media/j3d/VirtualUniverse.java @@ -130,11 +130,11 @@ ViewPlatformRetained[] viewPlatformList = null; // This is a global counter for view id's. int viewIdCount = 0; - // This is a vector of free nodeid's - Vector nodeIdFreeList = new Vector(); +// This is a vector of free nodeid's +Vector<String> nodeIdFreeList = new Vector<String>(); - // This is a vector of free viewid's - ArrayList viewIdFreeList = new ArrayList(); +// This is a vector of free viewid's +ArrayList<Integer> viewIdFreeList = new ArrayList<Integer>(); // The number of nodes in this universe int numNodes = 0; @@ -631,7 +631,7 @@ public Enumeration<Locale> getAllLocales() { // Issue 496: Remove last object using index to avoid performance // hit of a needless linear search. int idx = nodeIdFreeList.size() - 1; - str = (String) nodeIdFreeList.remove(idx); + str = nodeIdFreeList.remove(idx); } return(str); } @@ -648,7 +648,7 @@ public Enumeration<Locale> getAllLocales() { if (size == 0) { id = new Integer(viewIdCount++); } else { - id = (Integer) viewIdFreeList.remove(size-1); + id = viewIdFreeList.remove(size - 1); } } return(id); |