mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
use Class instance for synchronization of static methods rather than
creating an object only for that purpose.
This commit is contained in:
parent
3cc92e99ca
commit
cd197e4530
2 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ public class BoardActivity extends XWActivity
|
||||||
private boolean m_haveInvited = false;
|
private boolean m_haveInvited = false;
|
||||||
|
|
||||||
private static BoardActivity s_this = null;
|
private static BoardActivity s_this = null;
|
||||||
private static Object s_thisLocker = new Object();
|
private static Class s_thisLocker = BoardActivity.class;
|
||||||
|
|
||||||
public static boolean feedMessage( int gameID, byte[] msg,
|
public static boolean feedMessage( int gameID, byte[] msg,
|
||||||
CommsAddrRec retAddr )
|
CommsAddrRec retAddr )
|
||||||
|
|
|
@ -126,7 +126,7 @@ public class ConnStatusHandler {
|
||||||
|
|
||||||
private static HashMap<CommsConnType,SuccessRecord[]> s_records =
|
private static HashMap<CommsConnType,SuccessRecord[]> s_records =
|
||||||
new HashMap<CommsConnType,SuccessRecord[]>();
|
new HashMap<CommsConnType,SuccessRecord[]>();
|
||||||
private static Object s_lockObj = new Object();
|
private static Class s_lockObj = ConnStatusHandler.class;
|
||||||
private static boolean s_needsSave = false;
|
private static boolean s_needsSave = false;
|
||||||
|
|
||||||
public static void setRect( int left, int top, int right, int bottom )
|
public static void setRect( int left, int top, int right, int bottom )
|
||||||
|
|
Loading…
Add table
Reference in a new issue