ICU-5445 Fix some Eclipse warnings.

X-SVN-Rev: 21407
This commit is contained in:
George Rhoten 2007-04-12 21:10:59 +00:00
parent 98eb6d30b2
commit 5ef52d7773

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -50,10 +50,13 @@ public class TestDeprecatedNormalizerAPI extends TestFmwk
java.text.CharacterIterator iter = new StringCharacterIterator(s+s);
//test deprecated constructors
Normalizer norm = new Normalizer(iter, Normalizer.NFC,0);
Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0);
if(norm.next()!=0xe4) {
errln("error in Normalizer(CharacterIterator).next()");
}
Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0);
if(norm2.next()!=0xe4) {
errln("error in Normalizer(CharacterIterator).next()");
}
// test clone(), ==, and hashCode()
Normalizer clone=(Normalizer)norm.clone();
if(clone.getBeginIndex()!= norm.getBeginIndex()){
@ -149,9 +152,6 @@ public class TestDeprecatedNormalizerAPI extends TestFmwk
String decomp = Normalizer.decompose(chStr, compat);
String comp = Normalizer.compose(decomp, compat);
int cClass = UCharacter.getCombiningClass(decomp.charAt(0));
cClass = 0;
if (NormalizerImpl.isFullCompositionExclusion(ch)) {
logln("Skipped excluded char " + hex(ch) + " (" + UCharacter.getName(ch) + ")" );
continue;