8319556: Harmonize interface formatting in the FFM API
Reviewed-by: mcimadamore
This commit is contained in:
parent
cc4b0d9217
commit
73c5f60f41
src/java.base/share/classes/java/lang/foreign
@ -396,7 +396,8 @@ import jdk.internal.foreign.layout.UnionLayoutImpl;
|
|||||||
* @sealedGraph
|
* @sealedGraph
|
||||||
* @since 22
|
* @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}
|
* {@return the layout size, in bytes}
|
||||||
|
@ -50,9 +50,10 @@ import jdk.internal.foreign.layout.ValueLayouts;
|
|||||||
* @sealedGraph
|
* @sealedGraph
|
||||||
* @since 22
|
* @since 22
|
||||||
*/
|
*/
|
||||||
public sealed interface ValueLayout extends MemoryLayout permits
|
public sealed interface ValueLayout extends MemoryLayout
|
||||||
ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar, ValueLayout.OfShort, ValueLayout.OfInt,
|
permits ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar,
|
||||||
ValueLayout.OfFloat, ValueLayout.OfLong, ValueLayout.OfDouble, AddressLayout {
|
ValueLayout.OfShort, ValueLayout.OfInt, ValueLayout.OfFloat,
|
||||||
|
ValueLayout.OfLong, ValueLayout.OfDouble, AddressLayout {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@return the value's byte order}
|
* {@return the value's byte order}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user