代码声明定义建议顺序

今天数据质量马上上线,进入预生产前会对代码质量进行持续集成,检查坏味道等,优化代码;

下面是老大对代码声明定义建议的顺序,减少坏味道:

The Java Language Specification recommends listing modifiers in the following order:

1. Annotations

2. public

3. protected

4. private

5. abstract

6. static

7. final

8. transient

9. volatile

10. synchronized

11. native

12. strictfp

例如:public static final

猜你喜欢

转载自www.cnblogs.com/AlanWilliamWalker/p/9950475.html