From 5ef52d7773683b6f09e662f1600d13ab0895e543 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 12 Apr 2007 21:10:59 +0000 Subject: [PATCH] ICU-5445 Fix some Eclipse warnings. X-SVN-Rev: 21407 --- .../test/normalizer/TestDeprecatedNormalizerAPI.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/icu4j/src/com/ibm/icu/dev/test/normalizer/TestDeprecatedNormalizerAPI.java b/icu4j/src/com/ibm/icu/dev/test/normalizer/TestDeprecatedNormalizerAPI.java index 24791513c8..f49d7114d4 100644 --- a/icu4j/src/com/ibm/icu/dev/test/normalizer/TestDeprecatedNormalizerAPI.java +++ b/icu4j/src/com/ibm/icu/dev/test/normalizer/TestDeprecatedNormalizerAPI.java @@ -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;