readd old assertions -- and fix compile error

This commit is contained in:
Eric House 2014-02-28 06:47:27 -08:00
parent b45fcf2aa6
commit 1d85a74a6c

View file

@ -193,6 +193,7 @@ public class BoardActivity extends XWActivity
if ( 1 == size ) { if ( 1 == size ) {
BoardActivity self = s_this.iterator().next(); BoardActivity self = s_this.iterator().next();
Assert.assertNotNull( self.m_gi ); Assert.assertNotNull( self.m_gi );
Assert.assertNotNull( self.m_gameLock );
Assert.assertNotNull( self.m_jniThread ); Assert.assertNotNull( self.m_jniThread );
if ( gameID == self.m_gi.gameID ) { if ( gameID == self.m_gi.gameID ) {
self.m_jniThread.handle( JNICmd.CMD_RECEIVE, msg, retAddr ); self.m_jniThread.handle( JNICmd.CMD_RECEIVE, msg, retAddr );
@ -222,6 +223,7 @@ public class BoardActivity extends XWActivity
if ( 1 == size ) { if ( 1 == size ) {
BoardActivity self = s_this.iterator().next(); BoardActivity self = s_this.iterator().next();
Assert.assertNotNull( self.m_gi ); Assert.assertNotNull( self.m_gi );
Assert.assertNotNull( self.m_gameLock );
Assert.assertNotNull( self.m_jniThread ); Assert.assertNotNull( self.m_jniThread );
if ( rowid == self.m_rowid ) { if ( rowid == self.m_rowid ) {
delivered = true; // even if no messages! delivered = true; // even if no messages!
@ -2317,11 +2319,10 @@ public class BoardActivity extends XWActivity
return button; return button;
} }
private void noteSkip() private static void noteSkip()
{ {
String msg = "BoardActivity.feedMessage[s](): skipped because " String msg = "BoardActivity.feedMessage[s](): skipped because "
+ "too many open Boards"; + "too many open Boards";
DbgUtils.logf(msg ); DbgUtils.logf(msg );
Utils.showToast( this, msg ); // probably don't want to ship this
} }
} // class BoardActivity } // class BoardActivity