]> granicus.if.org Git - icu/commitdiff
ICU-8710 One more Java compiler warning fix for ICU4J 4.8.1
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 14 Jul 2011 22:50:51 +0000 (22:50 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 14 Jul 2011 22:50:51 +0000 (22:50 +0000)
X-SVN-Rev: 30359

icu4j/main/tests/core/src/com/ibm/icu/dev/test/text/SpoofCheckerTest.java

index 2dfe957dc01cc65aaaf6afdb0d87e265a235d910..b5f6533ed0a6919d9d2a29d815b67d694f39fa0d 100644 (file)
@@ -60,6 +60,9 @@ public class SpoofCheckerTest extends TestFmwk {
      */
     public void TestUSpoof() {
         SpoofChecker sc = new SpoofChecker.Builder().build();
+        if (sc == null) {
+            errln("FAIL: null SpoofChecker");
+        }
     }
 
     /*
@@ -71,7 +74,6 @@ public class SpoofCheckerTest extends TestFmwk {
             logln("Skip this test case because of the IBM Java 5 bug");
             return;
         }
-        SpoofChecker sc = new SpoofChecker.Builder().build();
         String fileName;
         Reader confusables;
         Reader confusablesWholeScript;