RFR: 8342336: Optimize ClassFile imports [v2]
Chen Liang
liach at openjdk.org
Wed Oct 16 18:48:13 UTC 2024
On Wed, 16 Oct 2024 16:24:55 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> This is a code style improvement for imports in the java/lang/classfile and jdk/internal/classfile/impl directories, includes:
>> 1. Import in alphabetical order
>> 2. Add a blank line between java and jdk imports
>> 3. Use import * for a large number of imports
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>
> Update src/java.base/share/classes/jdk/internal/classfile/impl/verifier/VerifierImpl.java
>
> Co-authored-by: Chen Liang <liach at openjdk.org>
Verified this matches the IDE formatting rule:
- java packages
- blank line
- other packages
- blank line
- static java packages
- static other packages
With an limit of 7 for using star for non-static imports.
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/21482#pullrequestreview-2373380060
More information about the core-libs-dev
mailing list