Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Is there a class member order inspection available?

$
0
0

I have never heard of this rule, but apparently in some companies (including mine) there is a strict rule that the fields must come before methods, etc. Is there an inspection available, which will check that the (Java) class members are in the following order:

 

static fields

fields

static methods

methods

Please, my fellow developers, let me know if you are structuring your code like this and whether it actually helps you or not

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>