RFR: 8328746: Remove unused imports in demo apps
Marius Hanl
mhanl at openjdk.org
Wed Mar 27 07:23:24 UTC 2024
On Tue, 26 Mar 2024 16:32:41 GMT, Kevin Rushforth <kcr at 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
More information about the openjfx-dev
mailing list