commit | 830f4db2313066ecf62a17e8e5e665178ec52c3f | [log] [tgz] |
---|---|---|
author | Etan Cohen <etancohen@google.com> | Mon Jun 12 11:18:10 2017 -0700 |
committer | Etan Cohen <etancohen@google.com> | Mon Jun 12 11:18:10 2017 -0700 |
tree | a83d17871b550109d287623b6a167e1a68709fc5 | |
parent | 1761985e422c360485b2b1185c242c56367a8337 [diff] |
[ErrorProne] Fix Error Prone warnings in aware/p2p code Bug: 33104624 Test: builds Change-Id: Ibf17a02c81aebfa28903fe440a75e3c2e9244a19
diff --git a/wifi/java/android/net/wifi/aware/WifiAwareSession.java b/wifi/java/android/net/wifi/aware/WifiAwareSession.java index babbed0..428c8bb 100644 --- a/wifi/java/android/net/wifi/aware/WifiAwareSession.java +++ b/wifi/java/android/net/wifi/aware/WifiAwareSession.java
@@ -67,6 +67,7 @@ * 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) {
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pManager.java b/wifi/java/android/net/wifi/p2p/WifiP2pManager.java index 7f085f71..f596eef 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pManager.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pManager.java
@@ -683,7 +683,7 @@ 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;