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

@@ -32,10 +32,10 @@ public class ApiKeyAuth implements RequestInterceptor {
@Override
public void apply(RequestTemplate template) {
if (location == "query") {
if ("query".equals(location)) {
template.query(paramName, apiKey);
} else if (location == "header") {
} else if ("header".equals(location)) {
template.header(paramName, apiKey);
}
}
}
}