ICU-4707 Fix some Eclipse warnings

X-SVN-Rev: 19904
This commit is contained in:
George Rhoten 2006-07-27 23:00:59 +00:00
parent 092fb55328
commit ced140e399
3 changed files with 8 additions and 11 deletions

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1997-2005, International Business Machines Corporation and *
* Copyright (C) 1997-2006, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -547,9 +547,8 @@ class CalendarCalcFrame extends Frame implements ActionListener
//hey {al} -
// } else if (format instanceof java.text.SimpleDateFormat) {
// return ((java.text.SimpleDateFormat)format).toPattern();
} else {
return "";
}
return "";
}
Calendar calendar;

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1997-2005, International Business Machines Corporation and *
* Copyright (C) 1997-2006, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -14,9 +14,7 @@ import java.util.Map;
import java.util.TreeMap;
import com.ibm.icu.dev.test.util.*;
import com.ibm.icu.impl.UCharacterProperty;
import com.ibm.icu.lang.*;
import com.ibm.icu.text.UnicodeSet;
import com.ibm.icu.util.VersionInfo;
public class UnicodeChart {

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -157,8 +157,8 @@ public class DumbTextComponent extends Canvas
+ hex((char)code) + ", " + hex((char)e.getModifiers()));
int start = selection.getStart();
int end = selection.getEnd();
boolean shift = (e.getModifiers() & KeyEvent.SHIFT_MASK) != 0;
boolean ctrl = (e.getModifiers() & KeyEvent.CTRL_MASK) != 0;
boolean shift = (e.getModifiers() & InputEvent.SHIFT_MASK) != 0;
boolean ctrl = (e.getModifiers() & InputEvent.CTRL_MASK) != 0;
switch (code) {
case KeyEvent.VK_Q:
@ -296,7 +296,7 @@ public class DumbTextComponent extends Canvas
char ch = e.getKeyChar();
if (DEBUG) System.out.println("keyTyped "
+ hex((char)ch) + ", " + hex((char)e.getModifiers()));
if ((e.getModifiers() & KeyEvent.CTRL_MASK) != 0) return;
if ((e.getModifiers() & InputEvent.CTRL_MASK) != 0) return;
int start, end;
switch (ch) {
case KeyEvent.CHAR_UNDEFINED:
@ -741,7 +741,7 @@ public class DumbTextComponent extends Canvas
for (i = s.length()-1; i >= 0; --i) {
char ch = s.charAt(i);
if (!(ch == ' ' || ch >= 0x000A && ch <= 0x000D || ch == 0x2028 || ch == 0x2029))
return fm.stringWidth(s.substring(0,i+1));;
return fm.stringWidth(s.substring(0,i+1));
}
return 0;
}