Back
How can I escape the @ symbol in javadoc? I am trying to use it inside a {@code} tag, which is inside <pre> tags.
I already tried the html escape @ sequence, but that didn't work.
my solution is
/** * Mapper Test Helper. * * add the following annotations above the class * <pre>{@code * // junit5 * @literal @ExtendWith(SpringExtension.class) * // junit4 * @literal @RunWith(SpringRunner.class) * }</pre> */
/**
* Mapper Test Helper.
*
* add the following annotations above the class
* <pre>{@code
* // junit5
* @literal @ExtendWith(SpringExtension.class)
* // junit4
* @literal @RunWith(SpringRunner.class)
* }</pre>
*/
31k questions
32.8k answers
501 comments
693 users