You can use //NOSONARor @SuppressWarnings(), but you need to specify a rule.
From the SonarQube document:
//NOSONAR ( ) . @SuppressWarnings("all") SonarQube.
SINCE 2.8 Java, @SuppressWarnings :
@SuppressWarnings("squid:S2078") @SuppressWarnings({"squid:S2078", "squid:S2076"}).