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

Add implementation reference to interface parameter declaration in JavaDoc #346

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

newtork
Copy link
Contributor

@newtork newtork commented Mar 6, 2024

Related
https://github.com/orgs/SAP/projects/62/views/5?pane=issue&itemId=55522157

Not sure whether this brings any benefit. But the user was unable to locate the implementation classes by themselves.

@MatKuhr MatKuhr enabled auto-merge (squash) March 6, 2024 10:33
@@ -61,6 +61,8 @@ public interface BuilderWithTokenEndpoint
* @param behalf
* The OAuth2 token representative.
* @return The same builder instance.
* @see com.sap.cloud.security.config.ClientCertificate
* @see com.sap.cloud.security.config.ClientCredentials
* @since 4.10.0
Copy link
Contributor

@CharlesDuboisSAP CharlesDuboisSAP Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather add:

         * @param clientIdentity
         *            The OAuth2 Client Identity. Can be instantiated from a {@link ClientCredentials}.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we do that we should mention both implementations I'd think.. But personally I'm also a fan of the @see to point to related stuff, we can also do both 😉

@MatKuhr MatKuhr requested a review from CharlesDuboisSAP March 8, 2024 07:33
@MatKuhr MatKuhr merged commit a7fe631 into main Mar 14, 2024
16 checks passed
@MatKuhr MatKuhr deleted the with-client-add-javadoc-note branch March 14, 2024 08:15
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.

4 participants