ICU-4288 Fix some Eclipse warnings.

X-SVN-Rev: 17631
This commit is contained in:
George Rhoten 2005-05-19 23:01:17 +00:00
parent 5fb23a1b19
commit 997f12bea2
13 changed files with 22 additions and 23 deletions

View file

@ -11,7 +11,6 @@ import com.ibm.icu.lang.*;
import com.ibm.icu.text.*;
import com.ibm.icu.util.LocaleData;
import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.VersionInfo;
import com.ibm.icu.impl.Utility;
import java.io.BufferedWriter;

View file

@ -1417,7 +1417,7 @@ public class TransliteratorTest extends TestFmwk {
Position offsets, boolean incremental) {
offsets.start = offsets.limit;
}
};
}
String id;
public TestFact(String theID) {
id = theID;
@ -1425,7 +1425,7 @@ public class TransliteratorTest extends TestFmwk {
public Transliterator getInstance(String ignoredID) {
return new NameableNullTrans(id);
}
};
}
public void TestSTV() {
Enumeration es = Transliterator.getAvailableSources();

View file

@ -6,6 +6,7 @@
*/
package com.ibm.icu.dev.test.translit;
import com.ibm.icu.lang.*;
import com.ibm.icu.lang.UCharacterEnums.ECharacterCategory;
import com.ibm.icu.text.*;
import com.ibm.icu.dev.test.*;
import com.ibm.icu.impl.Utility;
@ -311,7 +312,7 @@ public class UnicodeSetTest extends TestFmwk {
set = new UnicodeSet("[:Lu:]");
for (int i=0; i<0x200; ++i) {
boolean lu = (UCharacter.getType(i) == UCharacterCategory.UPPERCASE_LETTER);
boolean lu = (UCharacter.getType(i) == ECharacterCategory.UPPERCASE_LETTER);
if (lu != set.contains((char)i)) {
errln("FAIL: Lu contains " + (char)i + " = " +
set.contains((char)i));

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. *
*******************************************************************************
*/
@ -220,4 +220,4 @@ class CompressionTableGenerator
printSingleTagTable();
printUnicodeTagTable();
}
};
}

View file

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2004, International Business Machines Corporation and *
* Copyright (C) 2004-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -944,7 +944,7 @@ public class CheckAPI {
}
return res;
}
};
}
Tag[] tags = doc.tags();
Result result = new Result();

View file

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2004, International Business Machines Corporation and *
* Copyright (C) 2004-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -14,8 +14,6 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.regex.Matcher;

View file

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2004, International Business Machines Corporation and *
* Copyright (C) 2004-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -346,7 +346,7 @@ public class GatherAPIData {
}
return res;
}
};
}
Tag[] tags = doc.tags();
Result result = new Result();

View file

@ -11,6 +11,7 @@ import java.awt.Rectangle;
import javax.swing.Box;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
public class IMETest {
public static void main(String[] args) {
@ -18,7 +19,7 @@ public class IMETest {
Rectangle loc = new Rectangle(100, 100, 300, 300);
for (int i = 0; i < 2; ++i) {
JFrame jf = new JFrame("Test Window " + i);
jf.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
Box box = Box.createVerticalBox();
box.add(new JTextField(sampleText));
box.add(new JTextField(sampleText));

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1998-2004, International Business Machines Corporation and *
* Copyright (C) 1998-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -193,4 +193,4 @@ public class ScriptData extends TagValueData
private String fScriptNames[];
private String fScriptTags[];
private Record fRecords[];
};
}

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1998-2004, International Business Machines Corporation and *
* Copyright (C) 1998-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
@ -20,4 +20,4 @@ public abstract class TagValueData
abstract public String getTag(int value);
abstract public String getTagLabel(int value);
abstract public String makeTag(int value);
};
}

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1998-2004, International Business Machines Corporation and *
* Copyright (C) 1998-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
@ -51,7 +51,7 @@ public class ThaiStateTable
}
return false;
};
}
private final static boolean composesWithAnything(int charClass)
{

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. *
*******************************************************************************
*/
@ -342,7 +342,7 @@ final public class SortedVector {
public static final class StringComparator implements Comparator {
public int compare(Object a, Object b) {
return ((String)a).compareTo((String)b);
};
}
}
//{{DECLARE_CONTROLS
//}}

View file

@ -170,7 +170,7 @@ public class ReplaceableUCharacterIterator extends UCharacterIterator {
* @param currentIndex the currentIndex within the text.
* @exception IllegalArgumentException is thrown if an invalid currentIndex is
* supplied. i.e. currentIndex is out of bounds.
* @return the character at the specified currentIndex or DONE if the specified
* @returns the character at the specified currentIndex or DONE if the specified
* currentIndex is equal to the end of the text.
*/
public void setIndex(int currentIndex) throws IndexOutOfBoundsException{