RFR: 8346610: Make all imports conformant in the FFM API

Per Minborg pminborg at openjdk.org
Thu Dec 19 13:53:42 UTC 2024


On Thu, 19 Dec 2024 13:26:29 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> This PR proposes to clean up all the imports in the FFM lib (excluding tests).
>> 
>> Passes tier1-tier3
>
> src/java.base/share/classes/java/lang/foreign/FunctionDescriptor.java line 34:
> 
>> 32: import java.util.List;
>> 33: 
>> 34: import jdk.internal.foreign.FunctionDescriptorImpl;
> 
> Just curious where this style/convention is coming from, I've always put internal packages after the import of standard APIs.

Both alternatives were present and I picked the most prevailing one in the package. Also, this is what you get when you auto format in IntelliJ. But if there is a preference for the other way, we could switch. No problem.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22827#discussion_r1892161793


More information about the core-libs-dev mailing list