mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -2157,7 +2157,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
//
|
||||
// unscaledValue * 10^(-scale)
|
||||
//
|
||||
// where unscaledValue is an integer with the mimimum
|
||||
// where unscaledValue is an integer with the minimum
|
||||
// precision for the cohort of the numerical value. To
|
||||
// allow binary floating-point hardware to be used to get
|
||||
// approximately a 15 digit approximation to the square
|
||||
|
@ -4311,7 +4311,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
* digits.
|
||||
*
|
||||
* @param x the {@code long}
|
||||
* @return the length of the unscaled value, in deciaml digits.
|
||||
* @return the length of the unscaled value, in decimal digits.
|
||||
*/
|
||||
static int longDigitLength(long x) {
|
||||
/*
|
||||
|
@ -4944,7 +4944,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
}
|
||||
|
||||
/*
|
||||
* returns INFLATED if oveflow
|
||||
* returns INFLATED if overflow
|
||||
*/
|
||||
private static long add(long xs, long ys){
|
||||
long sum = xs + ys;
|
||||
|
|
|
@ -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
|
||||
|
@ -3923,7 +3923,7 @@ public class BigInteger extends Number implements Comparable<BigInteger> {
|
|||
*
|
||||
* @param val BigInteger whose magnitude array to be compared.
|
||||
* @return -1, 0 or 1 as this magnitude array is less than, equal to or
|
||||
* greater than the magnitude aray for the specified BigInteger's.
|
||||
* greater than the magnitude array for the specified BigInteger's.
|
||||
*/
|
||||
final int compareMagnitude(BigInteger val) {
|
||||
int[] m1 = mag;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue