Skip to content

Conversation

@CodeNinjai
Copy link
Contributor

String comparison with equals, to avoid object reference comparison.
Run manually mvn clean package successfully.

@wing328
Copy link
Contributor

wing328 commented Feb 7, 2017

@CodeNinjai thanks for the fix.

Please run ./bin/java-petstore-feign.sh to update the Petstore Feign client so that CIs can verify the fix.

@wing328
Copy link
Contributor

wing328 commented Feb 7, 2017

@CodeNinjai btw, for your upcoming PRs, I would suggest creating a new branch for the fix as per git best practice.

@CodeNinjai
Copy link
Contributor Author

Sorry @wing328 I'll keep this in mind, will do next time ;-)

@cbornet
Copy link
Contributor

cbornet commented Feb 7, 2017

@CodeNinjai The retrofit2 ApiClient has the same issue. Would you do the PR for it also ?

@CodeNinjai
Copy link
Contributor Author

@cbornet yes I can do this. Give me 3 or 4 hours.

@wing328 wing328 merged commit 2179b44 into swagger-api:master Feb 8, 2017
@wing328
Copy link
Contributor

wing328 commented Feb 8, 2017

@CodeNinjai PR merged into master. Thanks for your contribution.

For the fix to retrofit2 API client, please kindly submit a new PR (with a new branch)

@wing328
Copy link
Contributor

wing328 commented Feb 8, 2017

@CodeNinjai
Copy link
Contributor Author

Shall we create an issue for both?

@wing328
Copy link
Contributor

wing328 commented Feb 8, 2017

@CodeNinjai yes please

Stwissel added a commit to Stwissel/swagger-codegen that referenced this pull request Feb 9, 2017
* 'master' of github.com:swagger-api/swagger-codegen: (40 commits)
  remove default temp folder during initalization (swagger-api#4749)
  [Java-retrofit] Fix for swagger-api#4750 String comparison with equals (swagger-api#4751)
  update java server stub samples with new uuid mapping
  update java petstore with new uuid mapping
  [Java-Feign] Fixed String comparison using equals instead of == operator (swagger-api#4740)
  add SPINEN
  update jaxrs spec petstore sample (mac)
  [Jaxrs-spec] fix usage of Jersey templates in shellscript (swagger-api#4722)
  [Bash] Bash generator improvements (swagger-api#4730)
  [Java][Issue swagger-api#1806] generate using java.util.UUID for UUIDs
  Revert "rx2 support" (swagger-api#4737)
  rx2 support (swagger-api#4708)
  add https and change order for HPE
  add Hewlett Packard Enterprise (hpe.com)
  Add "Simpfony" to list of companies using Swagger (swagger-api#4726)
  add https://www.slamby.com/
  [csharp] Fix enum default value (swagger-api#4681)
  fix issue swagger-api#4672 - XmlExampleGenerator does not properly handle properties of several numeric types (swagger-api#4673)
  [JAXRS-CXF] Issue 4569 - Re-added usage of contextPath in api.mustache (basePath) (swagger-api#4580)
  [Jaxrs-cxf-cdi] merge beanvalidation templates to single one swagger-api#4719 (swagger-api#4723)
  ...
Stwissel added a commit to Stwissel/swagger-codegen that referenced this pull request Feb 9, 2017
* master: (40 commits)
  remove default temp folder during initalization (swagger-api#4749)
  [Java-retrofit] Fix for swagger-api#4750 String comparison with equals (swagger-api#4751)
  update java server stub samples with new uuid mapping
  update java petstore with new uuid mapping
  [Java-Feign] Fixed String comparison using equals instead of == operator (swagger-api#4740)
  add SPINEN
  update jaxrs spec petstore sample (mac)
  [Jaxrs-spec] fix usage of Jersey templates in shellscript (swagger-api#4722)
  [Bash] Bash generator improvements (swagger-api#4730)
  [Java][Issue swagger-api#1806] generate using java.util.UUID for UUIDs
  Revert "rx2 support" (swagger-api#4737)
  rx2 support (swagger-api#4708)
  add https and change order for HPE
  add Hewlett Packard Enterprise (hpe.com)
  Add "Simpfony" to list of companies using Swagger (swagger-api#4726)
  add https://www.slamby.com/
  [csharp] Fix enum default value (swagger-api#4681)
  fix issue swagger-api#4672 - XmlExampleGenerator does not properly handle properties of several numeric types (swagger-api#4673)
  [JAXRS-CXF] Issue 4569 - Re-added usage of contextPath in api.mustache (basePath) (swagger-api#4580)
  [Jaxrs-cxf-cdi] merge beanvalidation templates to single one swagger-api#4719 (swagger-api#4723)
  ...
@wing328 wing328 changed the title [Java-Feign] Fixed String comparison using equals instead of == operator [Java][Feign] Fixed String comparison using equals instead of == operator Feb 20, 2017
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
…tor (swagger-api#4740)

* [Java-Feign] Fixed String comparison using equals instead of == operator

* [Java-Feign] Updated ApiClient with ./bin/java-petstore-feign.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants