OpenJDK / amber / amber
changeset 60116:f3f66f9e98ee
8237818: Typo in Unsafe: resposibility
Reviewed-by: ysuenaga
Contributed-by: Aya Ebata <ayaaaaa.0u0w@gmail.com>
author | ysuenaga |
---|---|
date | Mon, 17 Feb 2020 11:12:24 +0900 |
parents | 6f40f03179f9 |
children | 690fc7e5a90f |
files | src/java.base/share/classes/jdk/internal/misc/Unsafe.java src/jdk.unsupported/share/classes/sun/misc/Unsafe.java |
diffstat | 2 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/jdk/internal/misc/Unsafe.java Thu Feb 13 10:07:38 2020 +0100 +++ b/src/java.base/share/classes/jdk/internal/misc/Unsafe.java Mon Feb 17 11:12:24 2020 +0900 @@ -40,7 +40,7 @@ * Although the class and all methods are public, use of this class is * limited because only trusted code can obtain instances of it. * - * <em>Note:</em> It is the resposibility of the caller to make sure + * <em>Note:</em> It is the responsibility of the caller to make sure * arguments are checked before methods of this class are * called. While some rudimentary checks are performed on the input, * the checks are best effort and when performance is an overriding @@ -425,7 +425,7 @@ /** * Create an exception reflecting that some of the input was invalid * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -601,7 +601,7 @@ * aligned for all value types. Dispose of this memory by calling {@link * #freeMemory}, or resize it with {@link #reallocateMemory}. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -657,7 +657,7 @@ * #reallocateMemory}. The address passed to this method may be null, in * which case an allocation will be performed. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -719,7 +719,7 @@ * If the effective address and length are (resp.) even modulo 4 or 2, * the stores take place in units of 'int' or 'short'. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -781,7 +781,7 @@ * If the effective addresses and length are (resp.) even modulo 4 or 2, * the transfer takes place in units of 'int' or 'short'. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -842,7 +842,7 @@ * as discussed in {@link #getInt(Object,long)}. When the object reference is null, * the offset supplies an absolute base address. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -901,7 +901,7 @@ * #allocateMemory} or {@link #reallocateMemory}. The address passed to * this method may be null, in which case no action is taken. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority,
--- a/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java Thu Feb 13 10:07:38 2020 +0100 +++ b/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java Mon Feb 17 11:12:24 2020 +0900 @@ -39,7 +39,7 @@ * Although the class and all methods are public, use of this class is * limited because only trusted code can obtain instances of it. * - * <em>Note:</em> It is the resposibility of the caller to make sure + * <em>Note:</em> It is the responsibility of the caller to make sure * arguments are checked before methods of this class are * called. While some rudimentary checks are performed on the input, * the checks are best effort and when performance is an overriding @@ -439,7 +439,7 @@ * aligned for all value types. Dispose of this memory by calling {@link * #freeMemory}, or resize it with {@link #reallocateMemory}. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -471,7 +471,7 @@ * #reallocateMemory}. The address passed to this method may be null, in * which case an allocation will be performed. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -507,7 +507,7 @@ * If the effective address and length are (resp.) even modulo 4 or 2, * the stores take place in units of 'int' or 'short'. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -552,7 +552,7 @@ * If the effective addresses and length are (resp.) even modulo 4 or 2, * the transfer takes place in units of 'int' or 'short'. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority, @@ -589,7 +589,7 @@ * #allocateMemory} or {@link #reallocateMemory}. The address passed to * this method may be null, in which case no action is taken. * - * <em>Note:</em> It is the resposibility of the caller to make + * <em>Note:</em> It is the responsibility of the caller to make * sure arguments are checked before the methods are called. While * some rudimentary checks are performed on the input, the checks * are best effort and when performance is an overriding priority,