there seems to be no way to fix the warning so add comment

This commit is contained in:
Eric House 2012-11-01 19:46:38 -07:00
parent 257a15917b
commit a73a5e8077

View file

@ -320,6 +320,9 @@ public class ConnStatusHandler {
}
}
// This gets rid of lint warning, but I don't like it as it
// effects the whole method.
// @SuppressWarnings("unchecked")
public static void loadState( Context context )
{
synchronized( s_lockObj ) {
@ -330,8 +333,8 @@ public class ConnStatusHandler {
try {
ObjectInputStream ois =
new ObjectInputStream( new ByteArrayInputStream(bytes) );
s_records =
(HashMap<CommsConnType,SuccessRecord[]>)ois.readObject();
Object obj = ois.readObject();
s_records = (HashMap<CommsConnType,SuccessRecord[]>)obj;
// } catch ( java.io.StreamCorruptedException sce ) {
// DbgUtils.logf( "loadState: %s", sce.toString() );
// } catch ( java.io.OptionalDataException ode ) {