Skip to content

[Java] Fixed @Deprecated annotations #6801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

brian-byungsookim
Copy link
Contributor

@brian-byungsookim brian-byungsookim commented Oct 24, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: 3.0.0 branch for changes related to OpenAPI spec 3.0. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming langauge.

Description of the PR

Fixed a previous PR (#6166) by adding the @Deprecated annotation to appropriate methods in the jersey2, okhttp-gson, resteasy libraries.

@bbdouglas @JFCote @sreeshas @jfiala @lukoyanov @cbornet

@cbornet
Copy link
Contributor

cbornet commented Oct 24, 2017

LGTM

@wing328 wing328 merged commit 044bfda into swagger-api:master Oct 25, 2017
@wing328
Copy link
Contributor

wing328 commented Oct 25, 2017

@brian-byungsookim thanks for the PR, which has been merged into master.

I also did a case-insensitive grep on other Java generator (e.g. server) and confirmed there's no other references to @Deprecated

@wing328 wing328 added this to the v2.3.0 milestone Oct 25, 2017
@brian-byungsookim brian-byungsookim deleted the java-deprecated-annotations-fix branch October 25, 2017 16:33
@martypitt
Copy link

From what I can tell, this doesn't address deprecated properties within models. Is that by design?

@brian-byungsookim
Copy link
Contributor Author

Sorry for the late response, but yes, I didn't address deprecated models in this PR.

@wing328
Copy link
Contributor

wing328 commented Nov 22, 2017

@martypitt may I know if you've time to file a PR to address deprecated properties within models?

@martypitt
Copy link

martypitt commented Nov 22, 2017 via email

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.

4 participants