diff options
author | Paul Stewart <pstew@google.com> | 2016-03-21 09:51:27 -0700 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-07-21 17:34:50 -0700 |
commit | 81be4e3aac55305cbb5c9d523cf5c96c66604b39 (patch) | |
tree | aed55f62076f3edf6cdbc29dc1bffbb6dd1ef3e5 /wifi | |
parent | 55271d454881b67ff38485fdd97598c542cc2d55 (diff) | |
download | frameworks_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.java | 2 |
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(); |