mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8241014: Miscellaneous typos in documentation comments
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
This commit is contained in:
parent
c5a7490809
commit
17ff85d4ad
39 changed files with 104 additions and 107 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2020, 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
|
||||
|
@ -9732,7 +9732,7 @@ class Character implements java.io.Serializable, Comparable<Character> {
|
|||
}
|
||||
|
||||
/**
|
||||
* Determines if the specified character (Unicode code point) is an alphabet.
|
||||
* Determines if the specified character (Unicode code point) is alphabetic.
|
||||
* <p>
|
||||
* A character is considered to be alphabetic if its general category type,
|
||||
* provided by {@link Character#getType(int) getType(codePoint)}, is any of
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, 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
|
||||
|
@ -319,7 +319,7 @@ final class ProcessHandleImpl implements ProcessHandle {
|
|||
* @param pids an allocated long array to receive the pids
|
||||
* @param ppids an allocated long array to receive the parent pids; may be null
|
||||
* @param starttimes an allocated long array to receive the child start times; may be null
|
||||
* @return if greater than or equals to zero is the number of pids in the array;
|
||||
* @return if greater than or equal to zero is the number of pids in the array;
|
||||
* if greater than the length of the arrays, the arrays are too small
|
||||
*/
|
||||
private static native int getProcessPids0(long pid, long[] pids,
|
||||
|
|
|
@ -960,7 +960,7 @@ public class Runtime {
|
|||
|
||||
/*
|
||||
* List of version number components passed to this constructor MUST
|
||||
* be at least unmodifiable (ideally immutable). In the case on an
|
||||
* be at least unmodifiable (ideally immutable). In the case of an
|
||||
* unmodifiable list, the caller MUST hand the list over to this
|
||||
* constructor and never change the underlying list.
|
||||
*/
|
||||
|
|
|
@ -1383,7 +1383,7 @@ public final class String
|
|||
* integer <i>k</i> less than {@code len} such that:
|
||||
* <blockquote><pre>
|
||||
* Character.toLowerCase(Character.toUpperCase(this.charAt(toffset+k))) !=
|
||||
Character.toLowerCase(Character.toUpperCase(other.charAt(ooffset+k)))
|
||||
* Character.toLowerCase(Character.toUpperCase(other.charAt(ooffset+k)))
|
||||
* </pre></blockquote>
|
||||
* </ul>
|
||||
*
|
||||
|
@ -2445,12 +2445,12 @@ public final class String
|
|||
* <pre>{@code
|
||||
* List<String> strings = List.of("Java", "is", "cool");
|
||||
* String message = String.join(" ", strings);
|
||||
* //message returned is: "Java is cool"
|
||||
* // message returned is: "Java is cool"
|
||||
*
|
||||
* Set<String> strings =
|
||||
* new LinkedHashSet<>(List.of("Java", "is", "very", "cool"));
|
||||
* String message = String.join("-", strings);
|
||||
* //message returned is: "Java-is-very-cool"
|
||||
* // message returned is: "Java-is-very-cool"
|
||||
* }</pre></blockquote>
|
||||
*
|
||||
* Note that if an individual element is {@code null}, then {@code "null"} is added.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, 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
|
||||
|
@ -194,8 +194,8 @@ final class DirectMethodHandleDescImpl implements DirectMethodHandleDesc {
|
|||
* descriptor.
|
||||
* @param o a {@code DirectMethodHandleDescImpl} to compare to this
|
||||
* {@code DirectMethodHandleDescImpl}
|
||||
* @return {@code true} if the specified {@code DirectMethodHandleDescImpl} is
|
||||
* equals to this {@code DirectMethodHandleDescImpl}.
|
||||
* @return {@code true} if the specified {@code DirectMethodHandleDescImpl}
|
||||
* is equal to this {@code DirectMethodHandleDescImpl}.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, 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
|
||||
|
@ -249,8 +249,8 @@ public class DynamicCallSiteDesc {
|
|||
*
|
||||
* @param o the {@code DynamicCallSiteDesc} to compare to this
|
||||
* {@code DynamicCallSiteDesc}
|
||||
* @return {@code true} if the specified {@code DynamicCallSiteDesc} is
|
||||
* equals to this {@code DynamicCallSiteDesc}.
|
||||
* @return {@code true} if the specified {@code DynamicCallSiteDesc}
|
||||
* is equal to this {@code DynamicCallSiteDesc}.
|
||||
*/
|
||||
@Override
|
||||
public final boolean equals(Object o) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, 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
|
||||
|
@ -350,8 +350,8 @@ public abstract class DynamicConstantDesc<T>
|
|||
*
|
||||
* @param o the {@code DynamicConstantDesc} to compare to this
|
||||
* {@code DynamicConstantDesc}
|
||||
* @return {@code true} if the specified {@code DynamicConstantDesc} is
|
||||
* equals to this {@code DynamicConstantDesc}.
|
||||
* @return {@code true} if the specified {@code DynamicConstantDesc}
|
||||
* is equal to this {@code DynamicConstantDesc}.
|
||||
*
|
||||
*/
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, 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
|
||||
|
@ -158,8 +158,8 @@ final class MethodTypeDescImpl implements MethodTypeDesc {
|
|||
*
|
||||
* @param o the {@code MethodTypeDescImpl} to compare to this
|
||||
* {@code MethodTypeDescImpl}
|
||||
* @return {@code true} if the specified {@code MethodTypeDescImpl} is
|
||||
* equals to this {@code MethodTypeDescImpl}.
|
||||
* @return {@code true} if the specified {@code MethodTypeDescImpl}
|
||||
* is equal to this {@code MethodTypeDescImpl}.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, 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
|
||||
|
@ -87,8 +87,8 @@ final class ReferenceClassDescImpl implements ClassDesc {
|
|||
*
|
||||
* @param o the {@code ClassDesc} to compare to this
|
||||
* {@code ClassDesc}
|
||||
* @return {@code true} if the specified {@code ClassDesc} is
|
||||
* equals to this {@code ClassDesc}.
|
||||
* @return {@code true} if the specified {@code ClassDesc}
|
||||
* is equal to this {@code ClassDesc}.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
|
|
@ -1379,12 +1379,12 @@ s.writeObject(this.parameterArray());
|
|||
|
||||
/**
|
||||
* This implementation returns {@code true} if {@code obj} is another
|
||||
* {@code WeakEntry} whose referent is equals to this referent, or
|
||||
* if {@code obj} is equals to the referent of this. This allows
|
||||
* {@code WeakEntry} whose referent is equal to this referent, or
|
||||
* if {@code obj} is equal to the referent of this. This allows
|
||||
* lookups to be made without wrapping in a {@code WeakEntry}.
|
||||
*
|
||||
* @param obj the object to compare
|
||||
* @return true if {@code obj} is equals to this or the referent of this
|
||||
* @return true if {@code obj} is equal to this or the referent of this
|
||||
* @see MethodType#equals(Object)
|
||||
* @see Object#equals(Object)
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, 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
|
||||
|
@ -536,14 +536,14 @@ public final class StringConcatFactory {
|
|||
* <li>The number of parameter slots in {@code concatType} is less than
|
||||
* or equal to 200</li>
|
||||
*
|
||||
* <li>The parameter count in {@code concatType} equals to number of \1 tags
|
||||
* <li>The parameter count in {@code concatType} is equal to number of \1 tags
|
||||
* in {@code recipe}</li>
|
||||
*
|
||||
* <li>The return type in {@code concatType} is assignable
|
||||
* from {@link java.lang.String}, and matches the return type of the
|
||||
* returned {@link MethodHandle}</li>
|
||||
*
|
||||
* <li>The number of elements in {@code constants} equals to number of \2
|
||||
* <li>The number of elements in {@code constants} is equal to number of \2
|
||||
* tags in {@code recipe}</li>
|
||||
* </ul>
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue