mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8279918: Fix various doc typos
Reviewed-by: kevinw, lancea, mullan, sspitsyn, naoto, jlahoda, azvegint, egahlin, jjg
This commit is contained in:
parent
ac98b22040
commit
f180530935
35 changed files with 88 additions and 88 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, 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
|
||||
|
@ -493,7 +493,7 @@ public interface DataInput {
|
|||
* is encountered, it is discarded and reading
|
||||
* ceases. If the character {@code '\r'}
|
||||
* is encountered, it is discarded and, if
|
||||
* the following byte converts  to the
|
||||
* the following byte converts to the
|
||||
* character {@code '\n'}, then that is
|
||||
* discarded also; reading then ceases. If
|
||||
* end of file is encountered before either
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, 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
|
||||
|
@ -738,7 +738,7 @@ public class ObjectInputStream
|
|||
* restored a final set of validations can be performed.
|
||||
*
|
||||
* @param obj the object to receive the validation callback.
|
||||
* @param prio controls the order of callbacks;zero is a good default.
|
||||
* @param prio controls the order of callbacks; zero is a good default.
|
||||
* Use higher numbers to be called back earlier, lower numbers for
|
||||
* later callbacks. Within a priority, callbacks are processed in
|
||||
* no particular order.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, 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
|
||||
|
@ -222,7 +222,7 @@ public class PipedInputStream extends InputStream {
|
|||
* @param len the maximum number of bytes received
|
||||
* @throws IOException If the pipe is <a href="#BROKEN"> broken</a>,
|
||||
* {@link #connect(java.io.PipedOutputStream) unconnected},
|
||||
* closed,or if an I/O error occurs.
|
||||
* closed, or if an I/O error occurs.
|
||||
*/
|
||||
synchronized void receive(byte[] b, int off, int len) throws IOException {
|
||||
checkStateForReceive();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2022, 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
|
||||
|
@ -1582,7 +1582,7 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* representing the class in which it was declared. This method returns
|
||||
* null if this class or interface is not a member of any other class. If
|
||||
* this {@code Class} object represents an array class, a primitive
|
||||
* type, or void,then this method returns null.
|
||||
* type, or void, then this method returns null.
|
||||
*
|
||||
* @return the declaring class for this class
|
||||
* @throws SecurityException
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, 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
|
||||
|
@ -1791,7 +1791,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
* @throws ArithmeticException if the result is inexact but the
|
||||
* rounding mode is {@code UNNECESSARY} or
|
||||
* {@code mc.precision == 0} and the quotient has a
|
||||
* non-terminating decimal expansion,including dividing by zero
|
||||
* non-terminating decimal expansion, including dividing by zero
|
||||
* @since 1.5
|
||||
*/
|
||||
public BigDecimal divide(BigDecimal divisor, MathContext mc) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, 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
|
||||
|
@ -778,7 +778,7 @@ public class MessageFormat extends Format {
|
|||
* {@code null} or has fewer than argumentIndex+1 elements.
|
||||
*
|
||||
* <table class="plain">
|
||||
* <caption style="display:none">Examples of subformat,argument,and formatted text</caption>
|
||||
* <caption style="display:none">Examples of subformat, argument, and formatted text</caption>
|
||||
* <thead>
|
||||
* <tr>
|
||||
* <th scope="col">Subformat
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, 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
|
||||
|
@ -2003,7 +2003,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||
/**
|
||||
* Returns a name for the locale that is appropriate for display
|
||||
* to the user. This will be the values returned by
|
||||
* getDisplayLanguage(), getDisplayScript(),getDisplayCountry()
|
||||
* getDisplayLanguage(), getDisplayScript(), getDisplayCountry(),
|
||||
* getDisplayVariant(), and optional <a href="./Locale.html#def_locale_extension">
|
||||
* Unicode extensions</a> assembled into a single string. The non-empty
|
||||
* values are used in order, with the second and subsequent names in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, 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
|
||||
|
@ -208,7 +208,7 @@ public class ZipFile implements ZipConstants, Closeable {
|
|||
*
|
||||
* @throws SecurityException
|
||||
* if a security manager exists and its {@code checkRead}
|
||||
* method doesn't allow read access to the file,or its
|
||||
* method doesn't allow read access to the file, or its
|
||||
* {@code checkDelete} method doesn't allow deleting the
|
||||
* file when the {@code OPEN_DELETE} flag is set
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, 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
|
||||
|
@ -70,7 +70,7 @@ import sun.text.SupplementaryCharacterData;
|
|||
* expression defines a set of characters (the "<em>ignore characters</em>") that
|
||||
* will be transparent to the BreakIterator. A sequence of characters will break the
|
||||
* same way it would if any ignore characters it contains are taken out. Break
|
||||
* positions never occur befoer ignore characters.</p>
|
||||
* positions never occur before ignore characters.</p>
|
||||
*
|
||||
* <p>A regular expression uses a subset of the normal Unix regular-expression syntax, and
|
||||
* defines a sequence of characters to be kept together. With one significant exception, the
|
||||
|
@ -151,7 +151,7 @@ import sun.text.SupplementaryCharacterData;
|
|||
* <td width="94%">If ! appears at the beginning of a regular expression, it tells the regexp
|
||||
* parser that this expression specifies the backwards-iteration behavior of the iterator,
|
||||
* and not its normal iteration behavior. This is generally only used in situations
|
||||
* where the automatically-generated backwards-iteration brhavior doesn't produce
|
||||
* where the automatically-generated backwards-iteration behavior doesn't produce
|
||||
* satisfactory results and must be supplemented with extra client-specified rules.</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2022, 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
|
||||
|
@ -46,12 +46,12 @@ public abstract class JavaTimeDateTimePatternProvider extends LocaleServiceProvi
|
|||
* Concrete implementation of this method will retrieve
|
||||
* a java.time specific dateTime Pattern from selected Locale Provider.
|
||||
*
|
||||
* @param timeStyle an {@code int} value representing FormatStyle constant, -1
|
||||
* @param timeStyle an {@code int} value, representing FormatStyle constant, -1
|
||||
* for date-only pattern
|
||||
* @param dateStyle an {@code int} value,representing FormatStyle constant, -1
|
||||
* @param dateStyle an {@code int} value, representing FormatStyle constant, -1
|
||||
* for time-only pattern
|
||||
* @param locale {@code locale}, non-null
|
||||
* @param calType a {@code String},non-null representing CalendarType such as "japanese",
|
||||
* @param calType a {@code String}, non-null representing CalendarType such as "japanese",
|
||||
* "iso8601"
|
||||
* @return formatting pattern {@code String}
|
||||
* @see java.time.format.DateTimeFormatterBuilder#convertStyle(java.time.format.FormatStyle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue