]> granicus.if.org Git - icu/commitdiff
ICU-11276 Fixing Javadoc warnings in NumberRangeFormatter.
authorShane Carr <shane@unicode.org>
Thu, 30 Aug 2018 01:02:16 +0000 (18:02 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:39 +0000 (14:27 -0700)
icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatterSettings.java

index c1ad0aab6007f42eecacff75834d638fbe1c9b3d..fa0322bffede42869982f13a17bb3cf840883f55 100644 (file)
@@ -10,8 +10,6 @@ import com.ibm.icu.util.ULocale;
  * The main entrypoint to the formatting of ranges of numbers, including currencies and other units of measurement.
  * <p>
  * Usage example:
- * <p>
- *
  * <pre>
  * NumberRangeFormatter.with()
  *         .identityFallback(RangeIdentityFallback.APPROXIMATELY_OR_SINGLE_VALUE)
index 683ef9ffcd7ed25cb2cde1f6370dde02f1dcce09..dd33b1b08c55aa7b8f24789d03c78805d9eb2ee2 100644 (file)
@@ -53,6 +53,7 @@ public abstract class NumberRangeFormatterSettings<T extends NumberRangeFormatte
      * @see NumberFormatter
      * @see NumberRangeFormatter
      */
+    @SuppressWarnings("unchecked")
     public T numberFormatterBoth(UnlocalizedNumberFormatter formatter) {
         return (T) numberFormatterFirst(formatter).numberFormatterSecond(formatter);
     }
@@ -76,8 +77,7 @@ public abstract class NumberRangeFormatterSettings<T extends NumberRangeFormatte
     }
 
     /**
-     * Sets the NumberFormatter instances to use for the numbers in the range. This method allows you to set a different
-     * formatter for the first and second numbers.
+     * Sets the NumberFormatter instances to use for the numbers in the range.
      * <p>
      * The NumberFormatter instance must not have a locale applied yet; the locale specified on the
      * NumberRangeFormatter will be used.
@@ -96,7 +96,6 @@ public abstract class NumberRangeFormatterSettings<T extends NumberRangeFormatte
 
     /**
      * Sets the aggressiveness of "collapsing" fields across the range separator. Possible values:
-     * <p>
      * <ul>
      * <li>ALL: "3-5K miles"</li>
      * <li>UNIT: "3K - 5K miles"</li>
@@ -121,7 +120,6 @@ public abstract class NumberRangeFormatterSettings<T extends NumberRangeFormatte
      * Sets the behavior when the two sides of the range are the same. This could happen if the same two numbers are
      * passed to the formatRange function, or if different numbers are passed to the function but they become the same
      * after rounding rules are applied. Possible values:
-     * <p>
      * <ul>
      * <li>SINGLE_VALUE: "5 miles"</li>
      * <li>APPROXIMATELY_OR_SINGLE_VALUE: "~5 miles" or "5 miles", depending on whether the number was the same before