mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-4288 Fix some Eclipse warnings.
X-SVN-Rev: 17632
This commit is contained in:
parent
997f12bea2
commit
9796e1e9e5
6 changed files with 11 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2003-2004, International Business Machines Corporation and *
|
||||
* Copyright (C) 2003-2005, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -16,7 +16,6 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
import java.util.MissingResourceException;
|
||||
import com.ibm.icu.dev.test.TestFmwk;
|
||||
import com.ibm.icu.impl.LocaleUtility;
|
||||
import com.ibm.icu.text.Collator;
|
||||
import com.ibm.icu.text.Collator.CollatorFactory;
|
||||
import com.ibm.icu.util.ULocale;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2001-2004, International Business Machines Corporation and *
|
||||
* Copyright (C) 2001-2005, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -213,7 +213,7 @@ public class IntlTestNumberFormat extends com.ibm.icu.dev.test.TestFmwk {
|
|||
* perform tests using aNumber and fNumberFormat, called in many variations
|
||||
**/
|
||||
public void tryIt(int aNumber) {
|
||||
long number;;
|
||||
long number;
|
||||
|
||||
String stringNum = fNumberFormat.format(aNumber);
|
||||
try {
|
||||
|
|
|
@ -11,7 +11,6 @@ import com.ibm.icu.text.NumberFormat.*;
|
|||
import com.ibm.icu.util.ULocale;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
|
||||
public class NumberFormatRegistrationTest extends com.ibm.icu.dev.test.TestFmwk {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2001-2004, International Business Machines Corporation and *
|
||||
* Copyright (C) 2001-2005, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -806,7 +806,7 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
// sigh, can't have static inner classes, why not?
|
||||
|
||||
static final class PI extends Number {
|
||||
private PI() {};
|
||||
private PI() {}
|
||||
public int intValue() { return (int)Math.PI; }
|
||||
public long longValue() { return (long)Math.PI; }
|
||||
public float floatValue() { return (float)Math.PI; }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2002-20043, International Business Machines Corporation and *
|
||||
* Copyright (C) 2002-2005, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -326,7 +326,7 @@ public class WriteIndicCharts {
|
|||
if(s1.equals("")){
|
||||
arr[index] = UTF16.valueOf(start+(((byte)iter.codepoint)&0xFF))+":CONSUMED";
|
||||
}else{
|
||||
arr[index] = s1+ ":FALLBACK";;
|
||||
arr[index] = s1+ ":FALLBACK";
|
||||
}
|
||||
} else{
|
||||
if(s2.equals("")){
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
|
||||
* (C) Copyright IBM Corp. 1998-2005. All Rights Reserved.
|
||||
*
|
||||
* The program is provided "as is" without any warranty express or
|
||||
* implied, including the warranty of non-infringement and the implied
|
||||
|
@ -12,6 +12,7 @@
|
|||
*/
|
||||
package com.ibm.richtext.textpanel;
|
||||
|
||||
import java.awt.Adjustable;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics;
|
||||
|
@ -87,8 +88,8 @@ public final class JTextPanel extends JPanel implements MTextPanel {
|
|||
boolean scrollBarsVisible = settings.getScrollBarsVisible();
|
||||
|
||||
if (scrollBarsVisible) {
|
||||
horzSb = new JScrollBar(JScrollBar.HORIZONTAL);
|
||||
vertSb = new JScrollBar(JScrollBar.VERTICAL);
|
||||
horzSb = new JScrollBar(Adjustable.HORIZONTAL);
|
||||
vertSb = new JScrollBar(Adjustable.VERTICAL);
|
||||
add("South", horzSb);
|
||||
add("East", vertSb);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue