[15] RFR: 8243664: JavaDoc of CompactNumberFormat points to wrong enum
Hello, Please review this small doc fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8243664 Here is the diff: --- --- old/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.000000000 -0700 +++ new/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.000000000 -0700 @@ -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 @@ -206,7 +206,7 @@ * {@link java.math.RoundingMode} for formatting. By default, it uses * {@link java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}. * - * @see CompactNumberFormat.Style + * @see NumberFormat.Style * @see NumberFormat * @see DecimalFormat * @since 12 --- javadoc is clever enough to convert it to correct NumberFormat.Style link, but still this should be corrected. Naoto
+1 On 4/27/20 12:36 PM, naoto.sato@oracle.com wrote:
Hello,
Please review this small doc fix to the following issue:
https://bugs.openjdk.java.net/browse/JDK-8243664
Here is the diff:
--- --- old/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.000000000 -0700 +++ new/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.000000000 -0700 @@ -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 @@ -206,7 +206,7 @@ * {@link java.math.RoundingMode} for formatting. By default, it uses * {@link java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}. * - * @see CompactNumberFormat.Style + * @see NumberFormat.Style * @see NumberFormat * @see DecimalFormat * @since 12 ---
javadoc is clever enough to convert it to correct NumberFormat.Style link, but still this should be corrected.
Naoto
+1. Indeed, the resulting javadoc was fine :-) Best, Joe On 4/27/2020 9:36 AM, naoto.sato@oracle.com wrote:
Hello,
Please review this small doc fix to the following issue:
https://bugs.openjdk.java.net/browse/JDK-8243664
Here is the diff:
--- --- old/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.000000000 -0700 +++ new/src/java.base/share/classes/java/text/CompactNumberFormat.java 2020-04-27 09:09:14.000000000 -0700 @@ -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 @@ -206,7 +206,7 @@ * {@link java.math.RoundingMode} for formatting. By default, it uses * {@link java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}. * - * @see CompactNumberFormat.Style + * @see NumberFormat.Style * @see NumberFormat * @see DecimalFormat * @since 12 ---
javadoc is clever enough to convert it to correct NumberFormat.Style link, but still this should be corrected.
Naoto
participants (3)
-
Joe Wang
-
naoto.sato@oracle.com
-
Roger Riggs