[jboss-as7-dev] order of import statements

Jeff Mesnil jmesnil at redhat.com
Tue Oct 9 12:55:46 EDT 2012


Hi,

Is there an agreement on the order of import statements in our codebase?

I'm using eclipse which, by default, organize imports in the following order:

static

java
javax
org
com

but we have some files with a different order *cough*intellij*cough* :)
That makes for some noise in the commits when I modify a class and eclipse changes the imports order.

If we agree with this default order, I can add a checkstyle rule[1] for this.

wdyt?
jeff

[1] http://checkstyle.sourceforge.net/config_imports.html#ImportOrder

-- 
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/


More information about the jboss-as7-dev mailing list