title: How to format code snippet in Javadoc with @ and { symbols inside?
body: <p>This is what I'm trying to do:</p>
  
  <pre><code>/**
   * &lt;pre&gt;
   * {@code
   * &amp;#64;XmlRootElement
   * public final class Page &amp;#123;
   * &amp;#125;
   * }
   * &lt;/pre&gt;
   */
  </code></pre>
  
  <p>I'm expecting it to be formatted like:</p>
  
  <pre><code>@XmlRootElement
  public final class Page {
  }
  </code></pre>
  
  <p>But I'm getting:</p>
  
  <pre><code>&amp;#64;XmlRootElement
  public final class Page &amp;#123;
  &amp;#125;
  </code></pre>
  
  <p>Replacing these HTML entities with real symbols (<code>@</code>, <code>{</code>, <code>}</code>) leads to javadoc warnings and absolutely incorrect formatting. What is a workaround?</p>