-
Notifications
You must be signed in to change notification settings - Fork 746
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
Fix '@' character in javadoc code snippets #3779
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
If I'm not mistaken about the proper formatting of code snippets, the syntax |
Javadoc has had a long-standing bug where a |
That was fixed in JDK 15 (https://bugs.openjdk.org/browse/JDK-8241780), and we use JDK 15 to generate javadoc for that reason (4f9e308), so it should be safe to make changes like this one at this point. |
Er, looking at the failing CI, we still generating Javadoc for the entire matrix, and just using JDK 15 to publish it: error-prone/.github/workflows/ci.yml Lines 54 to 56 in 4137a98
I don't mind letting it regress for JDK 11 at this point, but I'm not sure what the cleanest way to skip that in the matrix is. |
Maybe just add an |
@pigelvy can you resolve this? |
@cushon CLA signed. Sorry for the delay. It's my first time 😌 |
In the javadoc, the character '@' can be used directly in
{@code …}
. Using{@literal @}
causes wrong formatting of the Java code snippets.