simpler is better, though perhaps the fundamental rule should be don't reporter what's already there. That is, avoid needless churn.
My preferred style is: static imports blank line all other imports alphabetically On Fri, Sep 17, 2021 at 9:19 PM Slawomir Jaranowski <s.jaranow...@gmail.com> wrote: > > Hi, > > We have described many rules about code style on Maven Code Style And Code > Conventions [1]. > > One item missing for me is how java imports should be ordered and groped. > I can setup it in IDE and it is very useful to use code formatting with > tools. > I think that all propositions in this case will be ok - the most important > is to have one standard. > At the end we can even use checkstyle to verify it ... [2] > > So first proposition: > > - import javax.* > - import java.* > > - blank line > > - all other imports > > - blank line > > - import static all other imports > > > [1] https://maven.apache.org/developers/conventions/code.html > [2] https://checkstyle.sourceforge.io/config_imports.html#ImportOrder > > -- > Sławomir Jaranowski > > https://twitter.com/SlawekJaran > https://github.com/slawekjaranowski > https://linkedin.com/in/slawomirjaranowski -- Elliotte Rusty Harold elh...@ibiblio.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org