Description
String comparison for authName with == does a reference comparsion, which may work if the string is being optimized by the compiler and points to a single address...
Swagger-codegen version
2.2.1
Java/libraries/retrofit/ApiClient.mustache && Java/libraries/retrofit2/ApiClient.mustache
{{#authMethods}}if (authName == "{{name}}") { {{#isBasic}}
Potential fix
{{#authMethods}}if ("{{name}}".equals(authName)) { {{#isBasic}}