mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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 )
|
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 ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue