I am working in a very huge enterprise application with many modules in side it. I configured the SONAR recently and ran analysis on the project. The following error reported by SONAR is the very common one that I am seeing in every module, wherever I had an interface as follows.
public interface Constants {
String CONST1 = "CONST1";
String CONST1 = "CONST2";
}
And the SONAR says:
Move constants to a class or enum.
What is wrong with it, If I need to fix this, I have plenty of files like this.