HOW TO SUPRESS sonar warning in java code

Java
@java.lang.SuppressWarnings("squid:S00112")
Source

Also in Java: