# HG changeset patch # User darcy # Date 1372278253 25200 # Node ID 4c7fd49d28d08ac68aa8ee87b57dc0262d02bc90 # Parent 3000599aac3e6a9e20e8492ec40d005219cdc766 7018139: Fix HTML accessibility and doclint issues in java.math Reviewed-by: lancea, bpb diff -r 3000599aac3e -r 4c7fd49d28d0 jdk/src/share/classes/java/math/BigDecimal.java --- a/jdk/src/share/classes/java/math/BigDecimal.java Wed Jun 26 11:21:01 2013 -0700 +++ b/jdk/src/share/classes/java/math/BigDecimal.java Wed Jun 26 13:24:13 2013 -0700 @@ -2572,6 +2572,9 @@ * ({@code this} * 10n). The scale of * the result is {@code (this.scale() - n)}. * + * @param n the exponent power of ten to scale by + * @return a BigDecimal whose numerical value is equal to + * ({@code this} * 10n) * @throws ArithmeticException if the scale would be * outside the range of a 32-bit integer. * diff -r 3000599aac3e -r 4c7fd49d28d0 jdk/src/share/classes/java/math/RoundingMode.java --- a/jdk/src/share/classes/java/math/RoundingMode.java Wed Jun 26 11:21:01 2013 -0700 +++ b/jdk/src/share/classes/java/math/RoundingMode.java Wed Jun 26 13:24:13 2013 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, 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 @@ -101,6 +101,7 @@ * *

Example: * + * * * @@ -124,6 +125,7 @@ * *

Example: *

Rounding mode UP Examples
Input NumberInput rounded to one digit
with {@code UP} rounding *
5.5 6
+ * * * @@ -148,6 +150,7 @@ * *

Example: *

Rounding mode DOWN Examples
Input NumberInput rounded to one digit
with {@code DOWN} rounding *
5.5 5
+ * * * @@ -172,6 +175,7 @@ * *

Example: *

Rounding mode CEILING Examples
Input NumberInput rounded to one digit
with {@code CEILING} rounding *
5.5 6
+ * * * @@ -198,6 +202,7 @@ * *

Example: *

Rounding mode FLOOR Examples
Input NumberInput rounded to one digit
with {@code FLOOR} rounding *
5.5 5
+ * * * @@ -223,6 +228,7 @@ * *

Example: *

Rounding mode HALF_UP Examples
Input NumberInput rounded to one digit
with {@code HALF_UP} rounding *
5.5 6
+ * * * @@ -255,6 +261,7 @@ * *

Example: *

Rounding mode HALF_DOWN Examples
Input NumberInput rounded to one digit
with {@code HALF_DOWN} rounding *
5.5 5
+ * * * @@ -278,6 +285,7 @@ * {@code ArithmeticException} is thrown. *

Example: *

Rounding mode HALF_EVEN Examples
Input NumberInput rounded to one digit
with {@code HALF_EVEN} rounding *
5.5 6
+ * * *
Rounding mode UNNECESSARY Examples
Input NumberInput rounded to one digit
with {@code UNNECESSARY} rounding *
5.5 throw {@code ArithmeticException}