mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
there seems to be no way to fix the warning so add comment
This commit is contained in:
parent
257a15917b
commit
a73a5e8077
1 changed files with 5 additions and 2 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue