mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8289558: Need spec clarification of j.l.foreign.*Layout
Reviewed-by: psandoz, jvernee
This commit is contained in:
parent
8dd94a2c14
commit
889150b47a
5 changed files with 37 additions and 34 deletions
|
@ -143,10 +143,9 @@ public final class GroupLayout extends AbstractLayout implements MemoryLayout {
|
|||
if (!super.equals(other)) {
|
||||
return false;
|
||||
}
|
||||
if (!(other instanceof GroupLayout g)) {
|
||||
return false;
|
||||
}
|
||||
return kind.equals(g.kind) && elements.equals(g.elements);
|
||||
return other instanceof GroupLayout otherGroup &&
|
||||
kind == otherGroup.kind &&
|
||||
elements.equals(otherGroup.elements);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue