]> granicus.if.org Git - icu/commitdiff
ICU-13667 Fixing compiler warnings and API doc issues.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 29 May 2018 17:06:21 +0000 (17:06 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 29 May 2018 17:06:21 +0000 (17:06 +0000)
X-SVN-Rev: 41473

icu4j/main/classes/core/src/com/ibm/icu/impl/number/LocalizedNumberFormatterAsFormat.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/SeriesMatcher.java
icu4j/main/classes/core/src/com/ibm/icu/number/CurrencyRounder.java
icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java
icu4j/main/classes/core/src/com/ibm/icu/number/FractionRounder.java
icu4j/main/classes/core/src/com/ibm/icu/number/Rounder.java
icu4j/main/classes/core/src/com/ibm/icu/number/Scale.java
icu4j/main/classes/core/src/com/ibm/icu/text/Edits.java

index 2a034e960528412faa328c57dbc3e8a789820b98..cd1ee7911497c0c59f45eb45c7749e288e471796 100644 (file)
@@ -23,6 +23,8 @@ import com.ibm.icu.util.ULocale;
  */
 public class LocalizedNumberFormatterAsFormat extends Format {
 
+    private static final long serialVersionUID = 1L;
+
     private final transient LocalizedNumberFormatter formatter;
 
     // Even though the locale is inside the LocalizedNumberFormatter, we have to keep it here, too, because
@@ -114,6 +116,8 @@ public class LocalizedNumberFormatterAsFormat extends Format {
     }
 
     static class Proxy implements Externalizable {
+        private static final long serialVersionUID = 1L;
+
         String languageTag;
         String skeleton;
 
index 466be0e648c18aa23f8c5e4bfd1480ce7681cb8f..6d2147f65897a2f5d7fc103f530f841561edc496 100644 (file)
@@ -12,7 +12,6 @@ import com.ibm.icu.impl.StringSegment;
  * matchers in the series succeed. Performs greedy matches within the context of the series.
  *
  * @author sffc
- * @see AnyMatcher
  */
 public class SeriesMatcher implements NumberParseMatcher {
 
index 447405126670415078f5cfe0b735ce2883f738e0..aef07f6434c94cded0bdd2e1986bc14a8c56d6bb 100644 (file)
@@ -8,4 +8,8 @@ package com.ibm.icu.number;
  */
 @Deprecated
 public abstract class CurrencyRounder extends CurrencyPrecision {
+    // package private constructor just for blocking
+    // java compiler to generate public no-arg constructor.
+    CurrencyRounder() {
+    }
 }
\ No newline at end of file
index 965f5629b5e47f708f2f0821ef15fc9471de5aa7..34030048ce4d86211d86f7ecbba369e9a15249ea 100644 (file)
@@ -105,7 +105,6 @@ public class FormattedNumber {
      * <p>
      * If a field occurs just once, calling this method will find that occurrence and return it. If a
      * field occurs multiple times, this method may be called repeatedly with the following pattern:
-     * <p>
      *
      * <pre>
      * FieldPosition fpos = new FieldPosition(NumberFormat.Field.GROUPING_SEPARATOR);
index 56e91503070948f8941820588660559bcf9319fc..5fd1a6e7b30118617e09510d703a6796028cef1b 100644 (file)
@@ -8,4 +8,8 @@ package com.ibm.icu.number;
  */
 @Deprecated
 public abstract class FractionRounder extends FractionPrecision {
+    // package private constructor just for blocking
+    // java compiler to generate public no-arg constructor.
+    FractionRounder() {
+    }
 }
\ No newline at end of file
index f9db169e3647ba178edc7fab0a5035fefded10ea..fa42942825a63af81dbbedcd708a77f64b85d485 100644 (file)
@@ -8,4 +8,8 @@ package com.ibm.icu.number;
  */
 @Deprecated
 public abstract class Rounder extends Precision {
+    // package private constructor just for blocking
+    // java compiler to generate public no-arg constructor.
+    Rounder() {
+    }
 }
index 2952e885a11b7247377f0f3d83d51ec92a3289b4..ef3e3868fda2174f9ddd4e6035c4dac6de3fad8d 100644 (file)
@@ -74,7 +74,6 @@ public class Scale {
 
     /**
      * Multiply numbers by 100 before formatting. Useful for combining with a percent unit:
-     * <p>
      *
      * <pre>
      * NumberFormatter.with().unit(NoUnit.PERCENT).multiplier(Multiplier.powerOfTen(2))
index d8394321e570cec376e22ed6a8a1b2c0fa5344b4..1e992f7fa1626f82f58a58304866b5914f3c2e29 100644 (file)
@@ -19,7 +19,6 @@ import java.util.Arrays;
  * {@link Edits.Iterator} can be used for queries.
  * <p>
  * There are four flavors of Edits.Iterator:
- * <p>
  * <ul>
  * <li>{@link #getFineIterator()} retains full granularity of change edits.
  * <li>{@link #getFineChangesIterator()} retains full granularity of change edits, and when calling
@@ -822,7 +821,10 @@ public final class Edits {
         /**
          * A string representation of the current edit represented by the iterator for debugging. You
          * should not depend on the contents of the return string.
+         * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public String toString() {
             StringBuilder sb = new StringBuilder();