use Class instance for synchronization of static methods rather than

creating an object only for that purpose.
This commit is contained in:
Eric House 2012-11-27 18:55:08 -08:00
parent 3cc92e99ca
commit cd197e4530
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ public class BoardActivity extends XWActivity
private boolean m_haveInvited = false;
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,
CommsAddrRec retAddr )

View file

@ -126,7 +126,7 @@ public class ConnStatusHandler {
private static HashMap<CommsConnType,SuccessRecord[]> s_records =
new HashMap<CommsConnType,SuccessRecord[]>();
private static Object s_lockObj = new Object();
private static Class s_lockObj = ConnStatusHandler.class;
private static boolean s_needsSave = false;
public static void setRect( int left, int top, int right, int bottom )