ICU-4288 Fix some Eclipse warnings.

X-SVN-Rev: 17611
This commit is contained in:
George Rhoten 2005-05-18 00:12:56 +00:00
parent 4ce9f5c350
commit b604637724
14 changed files with 23 additions and 29 deletions

View File

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2000-2004, International Business Machines Corporation and *
* Copyright (C) 2000-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -209,7 +209,7 @@ public class CompatibilityTest extends com.ibm.icu.dev.test.TestFmwk {
auxMapping(cal, 1582, Calendar.OCTOBER, 4);
auxMapping(cal, 1582, Calendar.OCTOBER, 15);
auxMapping(cal, 1582, Calendar.OCTOBER, 16);
for (int y=800; y<3000; y+=1+(int)100*Math.random()) {
for (int y=800; y<3000; y+=1+(int)(100*Math.random())) {
for (int m=Calendar.JANUARY; m<=Calendar.DECEMBER; ++m) {
auxMapping(cal, y, m, 15);
}

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -420,4 +420,4 @@ public class HebrewTest extends CalendarTest {
}
}
}
};
}

View File

@ -509,7 +509,7 @@ public class IBMCalendarTest extends CalendarTest {
this.normalized = data;
if (normalized != null) this.normalized = normalized;
}
};
}
// July 2001 August 2001 January 2002
// Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -243,4 +243,4 @@ public class IslamicTest extends CalendarTest {
return civilCalendar;
}
};
}

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2002-2004, International Business Machines Corporation and *
* Copyright (C) 2002-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -38,7 +38,7 @@ public class CollationMiscTest extends TestFmwk {
int u;
String NFC;
String NFD;
};
}
private static final boolean hasCollationElements(Locale locale)
{
@ -1262,7 +1262,7 @@ public class CollationMiscTest extends TestFmwk {
}
public void TestIncrementalNormalize() {
Collator coll = null;;
Collator coll = null;
// logln("Test 1 ....");
{
/* Test 1. Run very long unnormalized strings, to force overflow of*/

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2002-2004, International Business Machines Corporation and *
* Copyright (C) 2002-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -388,7 +388,7 @@ public class CollationRegressionTest extends TestFmwk {
c.setStrength(Collator.PRIMARY);
compareArray(c, secondary);
};
}
// @bug 4062418
//

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2002-2004, International Business Machines Corporation and *
* Copyright (C) 2002-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -51,8 +51,8 @@ public class G7CollationTest extends TestFmwk{
{ 19, 22, 21, 24, 23, 25, 12, 13, 9, 0, 17, 16, 28, 26, 27, 15, 18, 14, 1, 11, 2, 3, 4, 5, 20, 6, 8, 10, 7, 29 }
};
private static final int MAX_TOKEN_LEN = 16;
private static final int TESTLOCALES = 12;
//private static final int MAX_TOKEN_LEN = 16;
//private static final int TESTLOCALES = 12;
private static final int FIXEDTESTSET = 15;
private static final int TOTALTESTSET = 30;

View File

@ -1,6 +1,6 @@
/*
*****************************************************************
* Copyright (c) 2002-2004, International Business Machines Corporation
* Copyright (c) 2002-2005, International Business Machines Corporation
* and others. All Rights Reserved.
*****************************************************************
* Date Name Description
@ -119,8 +119,6 @@ class AnyTransliterator extends Transliterator {
* there is no variant
* @param theTargetScript the script code corresponding to
* theTarget.
* @param ec error code, fails if the internal hashtable cannot be
* allocated
*/
private AnyTransliterator(String id,
String theTarget,

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -10,7 +10,6 @@ import com.ibm.icu.lang.UCharacter;
import com.ibm.icu.util.ULocale;
import java.text.CharacterIterator;
import java.util.Locale;
/**
@ -44,7 +43,7 @@ final class BreakTransliterator extends Transliterator {
public BreakIterator getBreakIterator() {
// Defer initialization of BreakIterator because it is slow,
// typically over 2000 ms.
if (bi == null) bi = (BreakIterator) BreakIterator.getWordInstance(new ULocale("th_TH"));
if (bi == null) bi = BreakIterator.getWordInstance(new ULocale("th_TH"));
return bi;
}

View File

@ -9,7 +9,6 @@ package com.ibm.icu.text;
import java.io.IOException;
import com.ibm.icu.impl.UCaseProps;
import com.ibm.icu.impl.UCharacterProperty;
import com.ibm.icu.util.ULocale;

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2001-2004, International Business Machines Corporation and *
* Copyright (C) 2001-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -103,7 +103,7 @@ class Quantifier implements UnicodeMatcher {
* characters that may be matched by this object into the given
* set.
* @param toUnionTo the set into which to union the source characters
* @return a reference to toUnionTo
* @returns a reference to toUnionTo
*/
public void addMatchSetTo(UnicodeSet toUnionTo) {
if (maxCount > 0) {

View File

@ -8,7 +8,6 @@ package com.ibm.icu.text;
import java.io.IOException;
import com.ibm.icu.impl.UCaseProps;
import com.ibm.icu.impl.UCharacterProperty;
import com.ibm.icu.util.ULocale;

View File

@ -312,7 +312,7 @@ class TransliteratorParser {
* Subclass method to return the next line of the source.
*/
abstract String handleNextLine();
};
}
/**
* RuleBody subclass for a String[] array.
@ -327,7 +327,7 @@ class TransliteratorParser {
public void reset() {
i = 0;
}
};
}
/**
* RuleBody subclass for a ResourceReader.
@ -344,7 +344,7 @@ class TransliteratorParser {
public void reset() {
reader.reset();
}
};
}
//----------------------------------------------------------------------
// class RuleHalf

View File

@ -9,7 +9,6 @@ package com.ibm.icu.text;
import java.io.IOException;
import com.ibm.icu.impl.UCaseProps;
import com.ibm.icu.impl.UCharacterProperty;
import com.ibm.icu.util.ULocale;