8319556: Harmonize interface formatting in the FFM API

Reviewed-by: mcimadamore
This commit is contained in:
Per Minborg 2023-11-08 06:12:14 +00:00
parent cc4b0d9217
commit 73c5f60f41
2 changed files with 6 additions and 4 deletions
src/java.base/share/classes/java/lang/foreign

@ -396,7 +396,8 @@ import jdk.internal.foreign.layout.UnionLayoutImpl;
* @sealedGraph
* @since 22
*/
public sealed interface MemoryLayout permits SequenceLayout, GroupLayout, PaddingLayout, ValueLayout {
public sealed interface MemoryLayout
permits SequenceLayout, GroupLayout, PaddingLayout, ValueLayout {
/**
* {@return the layout size, in bytes}

@ -50,9 +50,10 @@ import jdk.internal.foreign.layout.ValueLayouts;
* @sealedGraph
* @since 22
*/
public sealed interface ValueLayout extends MemoryLayout permits
ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar, ValueLayout.OfShort, ValueLayout.OfInt,
ValueLayout.OfFloat, ValueLayout.OfLong, ValueLayout.OfDouble, AddressLayout {
public sealed interface ValueLayout extends MemoryLayout
permits ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar,
ValueLayout.OfShort, ValueLayout.OfInt, ValueLayout.OfFloat,
ValueLayout.OfLong, ValueLayout.OfDouble, AddressLayout {
/**
* {@return the value's byte order}