summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2016-03-21 09:51:27 -0700
committergitbuildkicker <android-build@google.com>2016-07-21 17:34:50 -0700
commit81be4e3aac55305cbb5c9d523cf5c96c66604b39 (patch)
treeaed55f62076f3edf6cdbc29dc1bffbb6dd1ef3e5 /wifi
parent55271d454881b67ff38485fdd97598c542cc2d55 (diff)
downloadframeworks_base-81be4e3aac55305cbb5c9d523cf5c96c66604b39.zip
frameworks_base-81be4e3aac55305cbb5c9d523cf5c96c66604b39.tar.gz
frameworks_base-81be4e3aac55305cbb5c9d523cf5c96c66604b39.tar.bz2
Fix string equality comparison
Don't use "==" to compare strings. Bug: 25624963 Change-Id: Id25696e4fdcbcf4d48ec74e8ed65c1a33716b30c
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiEnterpriseConfig.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
index 16035ad..a337755 100644
--- a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
+++ b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
@@ -769,7 +769,7 @@ public class WifiEnterpriseConfig implements Parcelable {
StringBuffer sb = new StringBuffer();
for (String key : mFields.keySet()) {
// Don't display password in toString().
- String value = (key == PASSWORD_KEY) ? "<removed>" : mFields.get(key);
+ String value = PASSWORD_KEY.equals(key) ? "<removed>" : mFields.get(key);
sb.append(key).append(" ").append(value).append("\n");
}
return sb.toString();