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 ) public static void loadState( Context context )
{ {
synchronized( s_lockObj ) { synchronized( s_lockObj ) {
@ -330,8 +333,8 @@ public class ConnStatusHandler {
try { try {
ObjectInputStream ois = ObjectInputStream ois =
new ObjectInputStream( new ByteArrayInputStream(bytes) ); new ObjectInputStream( new ByteArrayInputStream(bytes) );
s_records = Object obj = ois.readObject();
(HashMap<CommsConnType,SuccessRecord[]>)ois.readObject(); s_records = (HashMap<CommsConnType,SuccessRecord[]>)obj;
// } catch ( java.io.StreamCorruptedException sce ) { // } catch ( java.io.StreamCorruptedException sce ) {
// DbgUtils.logf( "loadState: %s", sce.toString() ); // DbgUtils.logf( "loadState: %s", sce.toString() );
// } catch ( java.io.OptionalDataException ode ) { // } catch ( java.io.OptionalDataException ode ) {