ICU-12186 Fixed Eclipse compiler warnings - mostly javadoc warnings.

X-SVN-Rev: 38496
This commit is contained in:
Yoshito Umaoka 2016-03-05 01:31:16 +00:00
parent a7d264944d
commit 3af51fe196
7 changed files with 11 additions and 4 deletions

View File

@ -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) {

View File

@ -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 {
/**

View File

@ -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);
}

View File

@ -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());
}

View File

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

View File

@ -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:]]]");

View File

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