diff options
author | Harvey Harrison <[email protected]> | 2012-01-26 23:08:19 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-26 23:08:19 -0800 |
commit | aa7e88dca4c747b84c06f672c6dda3f1b7925081 (patch) | |
tree | 489f10b1831f1d553b104168f627426cb9a5628a | |
parent | cc282fa4083723bdf6df0eb6f3ed6ee9658a18ef (diff) |
j3dutils: update for generics annotation done for getAllLocales
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/scenegraph/io/state/com/sun/j3d/utils/universe/SimpleUniverseState.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/com/sun/j3d/utils/universe/SimpleUniverseState.java b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/com/sun/j3d/utils/universe/SimpleUniverseState.java index bb1cc79..163385c 100644 --- a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/com/sun/j3d/utils/universe/SimpleUniverseState.java +++ b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/com/sun/j3d/utils/universe/SimpleUniverseState.java @@ -157,13 +157,13 @@ public class SimpleUniverseState extends java.lang.Object { private void writeLocales( DataOutput out ) throws IOException { - Enumeration allLocales = universe.getAllLocales(); + Enumeration<Locale> allLocales = universe.getAllLocales(); out.writeInt( universe.numLocales() ); localeBGs = new ArrayList( universe.numLocales() ); int currentLocale = 0; int graphID = 0; while( allLocales.hasMoreElements() ) { - Locale locale = (Locale)allLocales.nextElement(); + Locale locale = allLocales.nextElement(); HiResCoord hiRes = new HiResCoord(); writeHiResCoord( out, hiRes ); int bgs[]; @@ -218,9 +218,9 @@ public class SimpleUniverseState extends java.lang.Object { */ public void buildGraph() { Locale locale; - Enumeration e = universe.getAllLocales(); + Enumeration<Locale> e = universe.getAllLocales(); for( int i=0; i<localeBGs.size(); i++) { - locale = (Locale)e.nextElement(); + locale = e.nextElement(); int[] bgs = (int[])localeBGs.get(i); for(int j=0; j<bgs.length; j++) { SymbolTableData symbol = control.getSymbolTable().getBranchGraphRoot( bgs[j] ); @@ -282,11 +282,11 @@ public class SimpleUniverseState extends java.lang.Object { * Reattach each BranchGraph to the Locale(s) */ public void attachAllGraphs() { - Enumeration e = universe.getAllLocales(); + Enumeration<Locale> e = universe.getAllLocales(); Locale locale; for( int i=0; i<localeBGs.size(); i++) { - locale = (Locale)e.nextElement(); + locale = e.nextElement(); int[] bgs = (int[])localeBGs.get(i); for(int j=0; j<bgs.length; j++) { SymbolTableData symbol = control.getSymbolTable().getBranchGraphRoot( bgs[j] ); |