Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (3.9k points)

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 &#64; sequence, but that didn't work.

1 Answer

0 votes
by (46k points)

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>

 */

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 22, 2019 in Salesforce by Kartik12234 (11.9k points)
0 votes
1 answer

Browse Categories

...