Skip to content

Commit db7f9d8

Browse files
committed
Typos
1 parent f4359f7 commit db7f9d8

File tree

1 file changed

+4
-4
lines changed
  • src/java.base/share/classes/jdk/internal/misc

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ private void checkWritebackEnabled() {
10441044
* {@link #staticFieldOffset}, {@link #objectFieldOffset},
10451045
* or {@link #arrayBaseOffset}.
10461046
* <p>
1047-
* The static type is @code long} to emphasize that long arithmetics should
1047+
* The static type is @code long} to emphasize that long arithmetic should
10481048
* always be used for offset calculations to avoid overflows.
10491049
*/
10501050
public static final long INVALID_FIELD_OFFSET = -1;
@@ -1177,7 +1177,7 @@ public void ensureClassInitialized(Class<?> c) {
11771177
* given class.
11781178
* <p>
11791179
* The return value is in the range of a {@code int}. The return type is
1180-
* {@code long} to emphasize that long arithmetics should always be used
1180+
* {@code long} to emphasize that long arithmetic should always be used
11811181
* for offset calculations to avoid overflows.
11821182
*
11831183
* @see #getInt(Object, long)
@@ -1236,7 +1236,7 @@ public long arrayBaseOffset(Class<?> arrayClass) {
12361236
* as zero.
12371237
* <p>
12381238
* The computation of the actual memory offset should always use {@code
1239-
* long} arithmetics to avoid overflows.
1239+
* long} arithmetic to avoid overflows.
12401240
*
12411241
* @see #arrayBaseOffset
12421242
* @see #getInt(Object, long)
@@ -3850,7 +3850,7 @@ private void putShortParts(Object o, long offset, byte i0, byte i1) {
38503850
private native Object staticFieldBase0(Field f);
38513851
private native boolean shouldBeInitialized0(Class<?> c);
38523852
private native void ensureClassInitialized0(Class<?> c);
3853-
private native int arrayBaseOffset0(Class<?> arrayClass); // public version returns long to promote correct arithmetics
3853+
private native int arrayBaseOffset0(Class<?> arrayClass); // public version returns long to promote correct arithmetic
38543854
private native int arrayIndexScale0(Class<?> arrayClass);
38553855
private native int getLoadAverage0(double[] loadavg, int nelems);
38563856

0 commit comments

Comments
 (0)