Skip to content

Commit d1a8e2e

Browse files
committed
fix
1 parent 59d9bc5 commit d1a8e2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • jcl/src/java.base/share/classes/jdk/internal/misc

jcl/src/java.base/share/classes/jdk/internal/misc/Unsafe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6936,7 +6936,7 @@ public int arrayLayout(Object[] array) {
69366936
if (null == array) {
69376937
throw new NullPointerException();
69386938
}
6939-
return isFlatArray(array.getClass().getComponentType()) ? ARRAY_LAYOUT_FLATTENED : ARRAY_LAYOUT_REFERENCE;
6939+
return isFlatArray(array.getClass()) ? ARRAY_LAYOUT_FLATTENED : ARRAY_LAYOUT_REFERENCE;
69406940
}
69416941

69426942
/**

0 commit comments

Comments
 (0)