[ErrorProne] Fix Error Prone warnings in aware/p2p code

Bug: 33104624
Test: builds
Change-Id: Ibf17a02c81aebfa28903fe440a75e3c2e9244a19
This commit is contained in:
Etan Cohen
2017-06-12 11:18:10 -07:00
parent 1761985e42
commit 830f4db231
2 changed files with 2 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ public class WifiAwareSession implements AutoCloseable {
* An application may re-attach after a destroy using
* {@link WifiAwareManager#attach(AttachCallback, Handler)} .
*/
@Override
public void close() {
WifiAwareManager mgr = mMgr.get();
if (mgr == null) {

View File

@@ -683,7 +683,7 @@ public class WifiP2pManager {
private DnsSdTxtRecordListener mDnsSdTxtListener;
private UpnpServiceResponseListener mUpnpServRspListener;
private HashMap<Integer, Object> mListenerMap = new HashMap<Integer, Object>();
private Object mListenerMapLock = new Object();
private final Object mListenerMapLock = new Object();
private int mListenerKey = 0;
private AsyncChannel mAsyncChannel;