Remove more Java String comparison using "=="

This commit is contained in:
Bochun Bai
2016-07-13 18:06:45 +08:00
parent 6d4d81b652
commit f75a42f810
14 changed files with 35 additions and 35 deletions

View File

@@ -78,9 +78,9 @@ public class ApiKeyAuth implements Authentication {
} else {
value = apiKey;
}
if (location == "query") {
if ("query".equals(location)) {
queryParams.add(new Pair(paramName, value));
} else if (location == "header") {
} else if ("header".equals(location)) {
headerParams.put(paramName, value);
}
}