mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
This commit is contained in:
parent
4594696f54
commit
fb469fb894
162 changed files with 369 additions and 369 deletions
|
@ -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
|
||||
|
@ -405,7 +405,7 @@ public class ChoiceFormat extends NumberFormat {
|
|||
int i;
|
||||
for (i = 0; i < choiceLimits.length; ++i) {
|
||||
if (!(number >= choiceLimits[i])) {
|
||||
// same as number < choiceLimits, except catchs NaN
|
||||
// same as number < choiceLimits, except catches NaN
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -464,7 +464,7 @@ public class ChoiceFormat extends NumberFormat {
|
|||
* {@link Math#nextUp(double) Math.nextUp(d)}
|
||||
*
|
||||
* @param d the reference value
|
||||
* @return the least double value greather than {@code d}
|
||||
* @return the least double value greater than {@code d}
|
||||
* @see #previousDouble
|
||||
*/
|
||||
public static final double nextDouble (double d) {
|
||||
|
|
|
@ -1723,7 +1723,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
}
|
||||
}
|
||||
|
||||
// ======== End fast-path formating logic for double =========================
|
||||
// ======== End fast-path formatting logic for double =========================
|
||||
|
||||
/**
|
||||
* Complete the formatting of a finite number. On entry, the digitList must
|
||||
|
|
|
@ -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
|
||||
|
@ -461,7 +461,7 @@ final class DigitList implements Cloneable {
|
|||
* rounding done, is needed in this class.
|
||||
*
|
||||
* - For the HALF_DOWN, HALF_EVEN, HALF_UP rounding rules below:
|
||||
* In the case of formating float or double, We must take into
|
||||
* In the case of formatting float or double, We must take into
|
||||
* account what FloatingDecimal has done in the binary to decimal
|
||||
* conversion.
|
||||
*
|
||||
|
@ -469,7 +469,7 @@ final class DigitList implements Cloneable {
|
|||
* value (returning decimal digits equal to tie when it is below),
|
||||
* or "truncate" the value to the tie while value is above it,
|
||||
* or provide the exact decimal digits when the binary value can be
|
||||
* converted exactly to its decimal representation given formating
|
||||
* converted exactly to its decimal representation given formatting
|
||||
* rules of FloatingDecimal ( we have thus an exact decimal
|
||||
* representation of the binary value).
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
|
@ -187,7 +187,7 @@ final class RBCollationTables {
|
|||
* with the specified comparison order.
|
||||
*
|
||||
* @param order a collation order returned by previous or next.
|
||||
* @return the maximum length of any expansion seuences ending
|
||||
* @return the maximum length of any expansion sequences ending
|
||||
* with the specified order.
|
||||
*
|
||||
* @see CollationElementIterator#getMaxExpansion
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
|
@ -82,7 +82,7 @@ final class RBTableBuilder {
|
|||
|
||||
// This array maps Unicode characters to their collation ordering
|
||||
mapping = new UCompactIntArray(RBCollationTables.UNMAPPED);
|
||||
// Normalize the build rules. Find occurances of all decomposed characters
|
||||
// Normalize the build rules. Find occurrences of all decomposed characters
|
||||
// and normalize the rules before feeding into the builder. By "normalize",
|
||||
// we mean that all precomposed Unicode characters must be converted into
|
||||
// a base character and one or more combining characters (such as accents).
|
||||
|
@ -503,7 +503,7 @@ final class RBTableBuilder {
|
|||
|
||||
/**
|
||||
* Create a new entry in the expansion table that contains the orderings
|
||||
* for the given characers. If anOrder is valid, it is added to the
|
||||
* for the given characters. If anOrder is valid, it is added to the
|
||||
* beginning of the expanded list of orders.
|
||||
*/
|
||||
private int addExpansion(int anOrder, String expandChars) {
|
||||
|
|
|
@ -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
|
||||
|
@ -1581,7 +1581,7 @@ public class SimpleDateFormat extends DateFormat {
|
|||
}
|
||||
|
||||
/* If the next tag/pattern is a <Numeric_Field> then the parser
|
||||
* should consider the count of digits while parsing the contigous digits
|
||||
* should consider the count of digits while parsing the contiguous digits
|
||||
* for the current tag/pattern
|
||||
*/
|
||||
private boolean shouldObeyCount(int tag, int count) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue