I am getting this warning on Sonar.I want solution to remove this warning on sonar. My class is like this :
public class FilePathHelper { private static Stri
I use an enum with no instances
public enum MyUtils { ; // no instances // class is final and the constructor is private public static int myUtilityMethod(int x) { return x * x; } }
you can call this using
int y = MyUtils.myUtilityMethod(5); // returns 25.