On Tue, 26 Mar 2024 16:32:41 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

> static imports (sorted alphabetically)
> one blank line
> ordinary imports (sorted alphabetically)
>
> No wildcard imports (I favor an exception for static imports).

+1 for something like this. It is a simple rule and pretty sure that it works 
for all IDEs.
Swing is also ordered alphabetically, but with groups usually.
Otherwise it looks the order in Swing is the other way around:


ordinary imports (sorted alphabetically)
one blank line
static imports (sorted alphabetically)

For me, both are good and I understand and agree to have some king of 
guideline. 
That will make reviewing all the import PRs easier as well.

Also +1 for no wildcard imports other than static imports.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1420#issuecomment-2022108806

Reply via email to