K
Knute Johnson
I'm trying to read a Hashtable from an ObjectInputStream and getting an
Unchecked cast warning in the compiler.
Hashtable<Integer,String[]> table =
(Hashtable<Integer,String[]>)ois.readObject();
com\knutejohnson\redrock\scores\ScoresServer.java:209: warning:
[unchecked] unch
ecked cast
found : java.lang.Object
required: java.util.Hashtable<java.lang.Integer,java.lang.String[]>
(Hashtable<Integer,String[]>)ois.readObject();
^
1 warning
Where am I going wrong here?
Thanks,
Unchecked cast warning in the compiler.
Hashtable<Integer,String[]> table =
(Hashtable<Integer,String[]>)ois.readObject();
com\knutejohnson\redrock\scores\ScoresServer.java:209: warning:
[unchecked] unch
ecked cast
found : java.lang.Object
required: java.util.Hashtable<java.lang.Integer,java.lang.String[]>
(Hashtable<Integer,String[]>)ois.readObject();
^
1 warning
Where am I going wrong here?
Thanks,