ICU-5445 Fix some Eclipse warnings.

X-SVN-Rev: 21397
This commit is contained in:
George Rhoten 2007-04-11 17:17:18 +00:00
parent cf6f47baa8
commit 66a82aa3b5
4 changed files with 11 additions and 11 deletions

View File

@ -833,14 +833,14 @@ public class TestCharset extends TestFmwk {
}
}
private void printCB(CharBuffer buf){
/* private void printCB(CharBuffer buf){
buf.rewind();
while(buf.hasRemaining()){
System.out.println(hex(buf.get()));
}
buf.rewind();
}
/*
public void TestUTF8() throws CharacterCodingException{
try{
CharsetEncoder encoderICU = new CharsetProviderICU().charsetForName("utf-8").newEncoder();

View File

@ -465,7 +465,7 @@ public class TestCLDRVsICU extends TestFmwk {
DefaultHandler DEFAULT_HANDLER = new DefaultHandler() {
static final boolean DEBUG = false;
StringBuffer lastChars = new StringBuffer();
boolean justPopped = false;
//boolean justPopped = false;
Handler handler;
public void startElement(
@ -488,7 +488,7 @@ public class TestCLDRVsICU extends TestFmwk {
//handler.set("locale", uLocale.toString());
}
//if (DEBUG) logln("startElement:\t" + contextStack);
justPopped = false;
//justPopped = false;
} catch (RuntimeException e) {
e.printStackTrace();
throw e;
@ -503,7 +503,7 @@ public class TestCLDRVsICU extends TestFmwk {
//logln("Unexpected contents of: " + qName + ", <" + lastChars + ">");
}
lastChars.setLength(0);
justPopped = true;
//justPopped = true;
} catch (RuntimeException e) {
e.printStackTrace();
throw e;
@ -516,7 +516,7 @@ public class TestCLDRVsICU extends TestFmwk {
String value = new String(ch,start,length);
if (DEBUG) logln("characters:\t" + value);
lastChars.append(value);
justPopped = false;
//justPopped = false;
} catch (RuntimeException e) {
e.printStackTrace();
throw e;

View File

@ -722,7 +722,7 @@ public class BasicTest extends TestFmwk {
// Internal utilities
//
private void backAndForth(Normalizer iter, String input)
/* private void backAndForth(Normalizer iter, String input)
{
iter.setText(input);
@ -745,7 +745,7 @@ public class BasicTest extends TestFmwk {
logln("Ok: Forward/reverse for input " + hex(input)
+ ", forward: " + hex(forward) + ", backward: "+hex(reverse));
}
}
}*/
private void backAndForth(Normalizer iter, String[][] tests)
{

View File

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2002-2004, International Business Machines Corporation and *
* Copyright (C) 2002-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -1023,13 +1023,13 @@ public class CollationPerformanceTest {
} catch (InterruptedException e) {}
}
private boolean needCRLF = false;
//private boolean needCRLF = false;
public int DOTMASK = 0x7FF;
void dot(int i) {
if ((i % DOTMASK) == 0) {
needCRLF = true;
//needCRLF = true;
// I do not know why print the dot here
//System.out.print('.');
}