Actually, using a JSP comment like so:
<%-- //NOSONAR --%>
is better, since it does not end up in the rendered HTML.