From 7053e5097dd06ab0f29d5d951d4711417eb6762d Mon Sep 17 00:00:00 2001 From: darcy Date: Wed, 26 Jun 2013 13:24:13 -0700 Subject: [PATCH] 7018139: Fix HTML accessibility and doclint issues in java.math Reviewed-by: lancea, bpb --- src/share/classes/java/math/BigDecimal.java | 3 +++ src/share/classes/java/math/RoundingMode.java | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/share/classes/java/math/BigDecimal.java b/src/share/classes/java/math/BigDecimal.java index d2a449223..944f8a79f 100644 --- a/src/share/classes/java/math/BigDecimal.java +++ b/src/share/classes/java/math/BigDecimal.java @@ -2572,6 +2572,9 @@ public class BigDecimal extends Number implements Comparable { * ({@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 --git a/src/share/classes/java/math/RoundingMode.java b/src/share/classes/java/math/RoundingMode.java index 69994a4c3..41493a200 100644 --- a/src/share/classes/java/math/RoundingMode.java +++ b/src/share/classes/java/math/RoundingMode.java @@ -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 @@ public enum RoundingMode { * *

Example: * + * * * @@ -124,6 +125,7 @@ public enum RoundingMode { * *

Example: *

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

Example: *

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

Example: *

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

Example: *

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

Example: *

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

Example: *

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

Example: *

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