ICU-13667 Fixing compiler warnings and API doc issues.

X-SVN-Rev: 41473
This commit is contained in:
Yoshito Umaoka 2018-05-29 17:06:21 +00:00
parent b6a793bafd
commit f4c892c6c4
8 changed files with 19 additions and 4 deletions

View 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;

View 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 {

View 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() {
}
}

View 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);

View 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() {
}
}

View 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() {
}
}

View 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))

View 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();