Sonar
提示Reorder the modifiers to comply with the Java Language Specification
是建议我们重新排序修饰符以符合Java语言规范
反例:private final static String DD = "测试";
改成:private static final String DD = "测试";
以下是修饰符的顺序:
- Annotations
- public
- protected
- private
- abstract
- static
- final
- transient
- volatile
- synchronized
- native
- strictfp
原文链接:https://blog.csdn.net/qq_34004088/article/details/102843039