Skip to content

Use {@code} instead of HTML entities in Javadoc #28821

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

Closed
wants to merge 1 commit into from
Closed

Use {@code} instead of HTML entities in Javadoc #28821

wants to merge 1 commit into from

Conversation

marcwrobel
Copy link
Contributor

@marcwrobel marcwrobel commented Jul 14, 2022

Special characters, like < or >, don't need to be escaped in {@code} Javadoc tag (https://reflectoring.io/howto-format-code-snippets-in-javadoc/). Using {@code} improves readability of the Javadoc in code.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 14, 2022
@marcwrobel
Copy link
Contributor Author

Note that this is only possible in inline code blocks because indentation and line breaks are lost with {@code].

@marcwrobel marcwrobel changed the title Use @code instead of HTML entities in Javadoc Use {@code} instead of HTML entities in Javadoc Jul 14, 2022
Special characters, like < or >, don't need to be escaped in {@code} Javadoc tag (https://reflectoring.io/howto-format-code-snippets-in-javadoc/). Using {@code} improves readability of the Javadoc in code.
@marcwrobel
Copy link
Contributor Author

marcwrobel commented Jul 14, 2022

It seems checkstyle does not like tags in {@code} blocks, such as {@code <async-supported>true</async-supported>}. This PR is all about that, so may be it should be abandoned.

@marcwrobel marcwrobel closed this Jul 18, 2022
@marcwrobel marcwrobel deleted the replace-entity-by-code branch July 18, 2022 18:37
@snicoll snicoll removed the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 19, 2022
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.

3 participants