Check out example codes for "HOW TO SUPRESS sonar warning in java code". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com