mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8274075: Fix miscellaneous typos in java.base
Reviewed-by: dfuchs, darcy, iris, lancea, bpb
This commit is contained in:
parent
8b833bbea8
commit
8799856528
9 changed files with 25 additions and 26 deletions
|
@ -350,9 +350,8 @@ public class Throwable implements Serializable {
|
|||
* @param message the detail message.
|
||||
* @param cause the cause. (A {@code null} value is permitted,
|
||||
* and indicates that the cause is nonexistent or unknown.)
|
||||
* @param enableSuppression whether or not suppression is enabled or disabled
|
||||
* @param writableStackTrace whether or not the stack trace should be
|
||||
* writable
|
||||
* @param enableSuppression whether or not suppression is enabled
|
||||
* @param writableStackTrace whether or not the stack trace is writable
|
||||
*
|
||||
* @see OutOfMemoryError
|
||||
* @see NullPointerException
|
||||
|
@ -552,7 +551,7 @@ public class Throwable implements Serializable {
|
|||
* stack trace of the exception that was caused by this exception (the
|
||||
* "enclosing" exception). This shorthand can greatly reduce the length
|
||||
* of the output in the common case where a wrapped exception is thrown
|
||||
* from same method as the "causative exception" is caught. The above
|
||||
* from the same method as the "causative exception" is caught. The above
|
||||
* example was produced by running the program:
|
||||
* <pre>
|
||||
* public class Junk {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -55,7 +55,7 @@ final class LambdaProxyClassArchive {
|
|||
/**
|
||||
* Registers the lambdaProxyClass into CDS archive.
|
||||
* The VM will store the lambdaProxyClass into a hash table
|
||||
* using the first six argumennts as the key.
|
||||
* using the first six arguments as the key.
|
||||
*
|
||||
* CDS only archives lambda proxy class if it's not serializable
|
||||
* and no marker interfaces and no additional bridges, and if it is
|
||||
|
|
|
@ -4421,7 +4421,7 @@ return mh1;
|
|||
* <p>
|
||||
* Misaligned access, and therefore atomicity guarantees, may be determined
|
||||
* for {@code byte[]} arrays without operating on a specific array. Given
|
||||
* an {@code index}, {@code T} and it's corresponding boxed type,
|
||||
* an {@code index}, {@code T} and its corresponding boxed type,
|
||||
* {@code T_BOX}, misalignment may be determined as follows:
|
||||
* <pre>{@code
|
||||
* int sizeOfT = T_BOX.BYTES; // size in bytes of T
|
||||
|
@ -4508,7 +4508,7 @@ return mh1;
|
|||
* <p>
|
||||
* Misaligned access, and therefore atomicity guarantees, may be determined
|
||||
* for a {@code ByteBuffer}, {@code bb} (direct or otherwise), an
|
||||
* {@code index}, {@code T} and it's corresponding boxed type,
|
||||
* {@code index}, {@code T} and its corresponding boxed type,
|
||||
* {@code T_BOX}, as follows:
|
||||
* <pre>{@code
|
||||
* int sizeOfT = T_BOX.BYTES; // size in bytes of T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue