ICU-12186 Fixed Eclipse compiler warnings - mostly javadoc warnings.
X-SVN-Rev: 38496
This commit is contained in:
parent
a7d264944d
commit
3af51fe196
@ -61,6 +61,7 @@ public class LocaleValidityChecker {
|
||||
|
||||
static Pattern SEPARATOR = Pattern.compile("[-_]");
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static final Pattern VALID_X = Pattern.compile("[a-zA-Z0-9]{2,8}(-[a-zA-Z0-9]{2,8})*");
|
||||
|
||||
public boolean isValid(ULocale locale, Where where) {
|
||||
|
@ -15,6 +15,7 @@ package com.ibm.icu.text;
|
||||
* transformation.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
@SuppressWarnings("javadoc") // com.imb.icu.text.Transliterator is in another project
|
||||
public abstract class UnicodeFilter implements UnicodeMatcher {
|
||||
|
||||
/**
|
||||
|
@ -605,6 +605,7 @@ public class Currency extends MeasureUnit {
|
||||
* @see #getName(Locale, int, boolean[])
|
||||
* @stable ICU 49
|
||||
*/
|
||||
@SuppressWarnings("javadoc") // java.util.Currency#getDisplayName() is introduced in Java 7
|
||||
public String getDisplayName() {
|
||||
return getName(Locale.getDefault(), LONG_NAME, null);
|
||||
}
|
||||
@ -624,6 +625,7 @@ public class Currency extends MeasureUnit {
|
||||
* @see #getName(Locale, int, boolean[])
|
||||
* @stable ICU 49
|
||||
*/
|
||||
@SuppressWarnings("javadoc") // java.util.Currency#getDisplayName() is introduced in Java 7
|
||||
public String getDisplayName(Locale locale) {
|
||||
return getName(locale, LONG_NAME, null);
|
||||
}
|
||||
|
@ -673,6 +673,7 @@ abstract public class TimeZone implements Serializable, Cloneable, Freezable<Tim
|
||||
* @see #useDaylightTime
|
||||
* @stable ICU 49
|
||||
*/
|
||||
@SuppressWarnings("javadoc") // java.util.TimeZone#observesDaylightTime() is introduced in Java 7
|
||||
public boolean observesDaylightTime() {
|
||||
return useDaylightTime() || inDaylightTime(new Date());
|
||||
}
|
||||
|
@ -109,6 +109,7 @@ import com.ibm.icu.text.LocaleDisplayNames.DialectHandling;
|
||||
* @author Ram Viswanadha
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
@SuppressWarnings("javadoc") // com.ibm.icu.text.Collator is in another project
|
||||
public final class ULocale implements Serializable, Comparable<ULocale> {
|
||||
// using serialver from jdk1.4.2_05
|
||||
private static final long serialVersionUID = 3715177670352309217L;
|
||||
|
@ -158,7 +158,7 @@ public class RBBITestMonkey extends TestFmwk {
|
||||
}
|
||||
|
||||
int next(int prevPos) {
|
||||
int p0, p1, p2, p3; // Indices of the significant code points around the
|
||||
int /*p0,*/ p1, p2, p3; // Indices of the significant code points around the
|
||||
// break position being tested. The candidate break
|
||||
// location is before p2.
|
||||
|
||||
@ -170,14 +170,14 @@ public class RBBITestMonkey extends TestFmwk {
|
||||
if (prevPos >= fText.length()) {
|
||||
return -1;
|
||||
}
|
||||
p0 = p1 = p2 = p3 = prevPos;
|
||||
/* p0 = */ p1 = p2 = p3 = prevPos;
|
||||
c3 = UTF16.charAt(fText, prevPos);
|
||||
c0 = c1 = c2 = 0;
|
||||
|
||||
// Loop runs once per "significant" character position in the input text.
|
||||
for (;;) {
|
||||
// Move all of the positions forward in the input string.
|
||||
p0 = p1; c0 = c1;
|
||||
/* p0 = p1;*/ c0 = c1;
|
||||
p1 = p2; c1 = c2;
|
||||
p2 = p3; c2 = c3;
|
||||
|
||||
@ -708,6 +708,7 @@ public class RBBITestMonkey extends TestFmwk {
|
||||
// Remove dictionary characters.
|
||||
// The monkey test reference implementation of line break does not replicate the dictionary behavior,
|
||||
// so dictionary characters are omitted from the monkey test data.
|
||||
@SuppressWarnings("unused")
|
||||
UnicodeSet dictionarySet = new UnicodeSet(
|
||||
"[[:LineBreak = Complex_Context:] & [[:Script = Thai:][:Script = Lao:][:Script = Khmer:] [:script = Myanmar:]]]");
|
||||
|
||||
|
@ -329,7 +329,7 @@ public class TestUtilities extends TestFmwk {
|
||||
logln("Comparing next");
|
||||
mi.reset();
|
||||
localMap = new TreeMap();
|
||||
String lastValue = null;
|
||||
// String lastValue = null;
|
||||
while (mi.next()) {
|
||||
// if (!UnicodeMap.areEqual(lastValue, mi.value)) {
|
||||
// // System.out.println("Change: " + Utility.hex(mi.codepoint) + " => " + mi.value);
|
||||
|
Loading…
Reference in New Issue
Block a user