Java语言规范建议按以下顺序列出修饰符:

1. Annotations

2. public

3. protected

4. private

5. abstract

6. static

7. final

8. transient

9. volatile

10. synchronized

11. native

12. strictfp

 

参考:

SonarLint

相关文章:

  • 2021-04-02
  • 2022-01-30
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2021-07-08
  • 2021-10-16
  • 2021-10-19
  • 2021-09-30
  • 2021-11-03
相关资源
相似解决方案