[foreign-memaccess+abi] RFR: 8293510: Code style issues in the foreign API [v2]

Jorn Vernee jvernee at openjdk.org
Mon Sep 19 13:13:06 UTC 2022


On Mon, 19 Sep 2022 09:52:56 GMT, Per Minborg <duke at openjdk.org> wrote:

>> Agree, we should follow the style used in the rest of the jdk code, at least in java.base.
>
> The principle used in this PR is the same as in `java.util.stream.Stream` where methods with 0 <= x <= 2 parameters are on the same line and methods with > 2 parameters are on separate vertical lines.

But that does not make it the norm. The majority of code in java.base does not do this. Even in `java.util.stream.Stream` it is not done for every method (e.g. `iterate` puts 3 parameters on the same line).

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

PR: https://git.openjdk.org/panama-foreign/pull/721


More information about the panama-dev mailing list