Skip to content
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

[Java][Jersey2] Fix generated Jersey 2 ApiClient to be thread-safe #818

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jer-kierstead
Copy link

This PR is intended to fix issue #817

Updated the Jersey 2 ApiClient to use the withHttpInfo pattern, consistent with many other generated clients, to return status code and response headers to the caller in a thread-safe way.

This code is heavily based on a previous PR made to swagger codegen v2: swagger-api/swagger-codegen/#7605

I also noticed a couple of javadoc warnings in relation to ApiClient::updateParamsForAuth so I took the liberty of fixing those.

I've tested this locally and have used the patched swagger codegen jar in another project I'm working on, but if there's anything else needed to verify this fix, please let me know.

Use the withHttpInfo pattern, consistent with many other generated clients, to return status code and response headers to the caller in a thread-safe way.

Refs swagger-api#817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant