Affects Sonarqube Version:
Sonarqube version: 8.1.0.31237
sonar-scanner version: 4.2.0.1873-windows
Rule:
S2333: Redundant modifiers should not be used
Description:
It is recommended add modifiers checking in the case of enum defined in a class, where static modifiers can be ignored
Code Sample demonstrating the issue:
public class Bar {
public static enum FoorBar { // static ignored
FOO;
}
}
Expected outcome:
Suggestion
Running Sonarqube through:
command line