-
Notifications
You must be signed in to change notification settings - Fork 6k
Incorrect javadoc in AuthorizationCodeOAuth2AuthorizedClientProvider #9708
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
Comments
Thanks for the report, @talentedasian. Would you be able to submit a PR updating the description? I imagine it might read something like this: /**
* ...
* @return {@code null} if authorization is not supported
* @throws ClientAuthorizationRequiredException in order to trigger authorization
*/ |
Was it intentional to just either return null or throw an exception? If so, do you mind explaining why as I think that it if it does really return just a null then it would be redundant |
I think it's best if someone else updates the description :) |
After reading through the code again, I now get it. The name was confusing though. But yeah, changing the description should suffice |
The code in the link above returns either only a null or an exception. While the documentation says it also returns an Oauth2AuthorizedClient
The text was updated successfully, but these errors were encountered: