class or interface in java.lang.annotation" class="externalLink">Annotation</a>&nbsp;annotation)</pre>
<div class="block">Adds given annotation to this method. The annotation instance is typically
 a subclass of <a href="../../../../util/AnnotationLiteral.html" title="class in jakarta.enterprise.util"><code>AnnotationLiteral</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DeclarationConfig.html#addAnnotation(java.lang.annotation.Annotation)">addAnno