ICU-5445 Fix some default eclipse warnings

X-SVN-Rev: 21008
This commit is contained in:
George Rhoten 2007-02-06 02:46:34 +00:00
parent e1e8a7a138
commit 464ae7d46f
26 changed files with 29 additions and 107 deletions

View file

@ -1,13 +1,11 @@
/**
*******************************************************************************
* Copyright (C) 2001-2006, International Business Machines Corporation and *
* Copyright (C) 2001-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.impl;
//import com.ibm.icu.text.Collator;
import java.lang.ref.SoftReference;
import java.util.ArrayList;
import java.util.Collections;
@ -18,7 +16,6 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

View file

@ -2,20 +2,14 @@
//#ifndef FOUNDATION
/*
*******************************************************************************
* Copyright (C) 2006, Google, International Business Machines Corporation and *
* others. All Rights Reserved. *
* Copyright (C) 2006-2007, Google, International Business Machines Corporation *
* and others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.impl;
import com.ibm.icu.text.UTF16;
import com.ibm.icu.text.UnicodeSet;
import com.ibm.icu.text.DateTimePatternGenerator.FormatParser;
import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
import java.util.BitSet;
import java.util.Iterator;
import java.util.List;
/**
* A simple parsing class for patterns and rules. Handles '...' quotations, \\uxxxx and \\Uxxxxxxxx, and symple syntax.

View file

@ -594,13 +594,11 @@ public final class UPropertyAliases implements ICUBinary.Authenticate {
* array of stringPool[] indices. MODIFIES THE ARRAY IN
* PLACE.
*/
///CLOVER:OFF
private void stringOffsetToIndex(short array[]) {
/* private void stringOffsetToIndex(short array[]) {
for (int i=0; i<array.length; ++i) {
array[i] = stringOffsetToIndex(array[i]);
}
}
///CLOVER:ON
}*/
/**
* Convert an offset into the value map into a valueMap[]

View file

@ -23,12 +23,6 @@ import java.util.MissingResourceException;
* @stable ICU 2.4
*/
public final class UScript {
/**
* Puts a copyright in the .class file
*/
private static final String copyrightNotice
= "Copyright \u00a92001 IBM Corp. All rights reserved.";
/**
* Invalid code
* @stable ICU 2.4

View file

@ -51,12 +51,6 @@ import com.ibm.icu.text.UTF16;
*/
public final class UScriptRun
{
/**
* Puts a copyright in the .class file
*/
private static final String copyrightNotice
= "Copyright \u00a91999-2002 IBM Corp. All rights reserved.";
/**
* Construct an empty <code>UScriptRun</code> object. The <code>next()</code>
* method will return <code>false</code> the first time it is called.

View file

@ -5,7 +5,7 @@ package com.ibm.icu.math;
/* ------------------------------------------------------------------ */
/* MathContext -- Math context settings */
/* ------------------------------------------------------------------ */
/* Copyright IBM Corporation, 1997, 2000, 2005. All Rights Reserved. */
/* Copyright IBM Corporation, 1997, 2000, 2005, 2007. All Rights Reserved. */
/* */
/* The MathContext object encapsulates the settings used by the */
/* BigDecimal class; it could also be used by other arithmetics. */
@ -78,7 +78,7 @@ package com.ibm.icu.math;
*/
public final class MathContext implements java.io.Serializable{
private static final java.lang.String $0="MathContext.nrx";
//private static final java.lang.String $0="MathContext.nrx";
/* ----- Properties ----- */
/* properties public constant */
@ -591,7 +591,7 @@ public final class MathContext implements java.io.Serializable{
private static boolean isValidRound(int testround){
int r=0;
{int $2=ROUNDS.length;r=0;r:for(;$2>0;$2--,r++){
{int $2=ROUNDS.length;for(r=0;$2>0;$2--,r++){
if (testround==ROUNDS[r])
return true;
}

View file

@ -1,6 +1,6 @@
/*
****************************************************************************
* Copyright (C) 2005-2006, International Business Machines Corporation and *
* Copyright (C) 2005-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
****************************************************************************
*
@ -312,7 +312,7 @@ abstract class CharsetRecog_mbcs extends CharsetRecognizer {
int firstByte = 0;
int secondByte = 0;
int thirdByte = 0;
int fourthByte = 0;
//int fourthByte = 0;
buildChar: {
firstByte = it.charValue = it.nextByte(det);

View file

@ -1,6 +1,6 @@
/*
****************************************************************************
* Copyright (C) 2005-2006, International Business Machines Corporation and *
* Copyright (C) 2005-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
************************************************************************** *
*
@ -28,7 +28,7 @@ abstract class CharsetRecog_sbcs extends CharsetRecognizer {
static class NGramParser
{
private static final int N_GRAM_SIZE = 3;
// private static final int N_GRAM_SIZE = 3;
private static final int N_GRAM_MASK = 0xFFFFFF;
private int byteIndex = 0;

View file

@ -13,9 +13,7 @@ import java.util.Set;
import com.ibm.icu.impl.ICUDebug;
import com.ibm.icu.impl.ICUResourceBundle;
import com.ibm.icu.impl.LocaleUtility;
import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.UResourceBundle;
import com.ibm.icu.util.VersionInfo;
/**

View file

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2003-2006, International Business Machines Corporation and *
* Copyright (C) 2003-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -16,10 +16,8 @@ import com.ibm.icu.impl.ICUResourceBundle;
import com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory;
import com.ibm.icu.impl.ICUService;
import com.ibm.icu.impl.ICUService.Factory;
import com.ibm.icu.impl.LocaleUtility;
import com.ibm.icu.text.Collator.CollatorFactory;
import com.ibm.icu.util.ULocale;
import com.ibm.icu.impl.ICUResourceBundle;
final class CollatorServiceShim extends Collator.ServiceShim {

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2005, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -32,9 +32,6 @@ class CompoundTransliterator extends Transliterator {
private int numAnonymousRBTs = 0;
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 1999-2001. All rights reserved.";
/**
* Constructs a new compound transliterator given an array of
* transliterators. The array of transliterators may be of any

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -20,12 +20,6 @@ final class NFRule {
// constants
//-----------------------------------------------------------------------
/**
* Puts a copyright in the .class file
*/
private static final String copyrightNotice
= "Copyright \u00a91997-1998 IBM Corp. All rights reserved.";
/**
* Special base value used to identify a negative-number rule
*/

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -21,16 +21,6 @@ import java.util.Vector;
*/
final class NFRuleSet {
//-----------------------------------------------------------------------
// constants
//-----------------------------------------------------------------------
/**
* Puts a copyright in the .class file
*/
private static final String copyrightNotice
= "Copyright \u00a91997-1998 IBM Corp. All rights reserved.";
//-----------------------------------------------------------------------
// data members
//-----------------------------------------------------------------------

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -11,9 +11,6 @@ package com.ibm.icu.text;
* @internal
*/
class NullTransliterator extends Transliterator {
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 2000. All rights reserved.";
/**
* Package accessible IDs for this transliterator.
*/

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2003-2006, International Business Machines Corporation and *
* Copyright (C) 2003-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -22,7 +22,6 @@ import com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory;
import com.ibm.icu.text.NumberFormat;
import com.ibm.icu.text.NumberFormat.NumberFormatFactory;
import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.UResourceBundle;
class NumberFormatServiceShim extends NumberFormat.NumberFormatShim {

View file

@ -1,7 +1,7 @@
/*
*******************************************************************************
*
* Copyright (C) 2004-2005, International Business Machines
* Copyright (C) 2004-2007, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@ -20,9 +20,6 @@
package com.ibm.icu.text;
import com.ibm.icu.impl.UCaseProps;
import com.ibm.icu.impl.UCharacterProperty;
import com.ibm.icu.util.ULocale;
/**
* Implementation of UCaseProps.ContextIterator, iterates over a Replaceable.

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -25,9 +25,6 @@ import com.ibm.icu.impl.Utility;
public class ReplaceableString implements Replaceable {
private StringBuffer buf;
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 1999. All rights reserved.";
/**
* Construct a new object with the given initial contents.
* @param str initial contents

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -277,9 +277,6 @@ public class RuleBasedTransliterator extends Transliterator {
private Data data;
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 1999. All rights reserved.";
/**
* Constructs a new transliterator from the given rules.
* @param rules rules, separated by ';'

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -121,9 +121,6 @@ class TransliterationRule {
private final RuleBasedTransliterator.Data data;
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 1999-2001. All rights reserved.";
/**
* Construct a new rule with the given input, output text, and other
* attributes. A cursor position may be specified for the output text.

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -49,9 +49,6 @@ class TransliterationRuleSet {
*/
private int[] index;
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 1999-2001. All rights reserved.";
/**
* Construct a new empty rule set.
*/

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -12,7 +12,6 @@ import com.ibm.icu.impl.UtilityExtensions;
import com.ibm.icu.util.CaseInsensitiveString;
import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.UResourceBundle;
import com.ibm.icu.impl.UCharacterProperty;
import java.text.MessageFormat;
import java.util.Enumeration;
@ -500,9 +499,6 @@ public abstract class Transliterator {
*/
static final boolean DEBUG = false;
private static final String COPYRIGHT =
"\u00A9 IBM Corporation 1999. All rights reserved.";
/**
* Default constructor.
* @param ID the string identifier for this transliterator

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -42,7 +42,6 @@ import java.util.Locale;
public class BuddhistCalendar extends GregorianCalendar {
// jdk1.4.2 serialver
private static final long serialVersionUID = 2583005278132380631L;
private static String copyright = "Copyright \u00a9 1998 IBM Corp. All Rights Reserved.";
//-------------------------------------------------------------------------
// Constructors...

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -74,8 +74,6 @@ public class HebrewCalendar extends Calendar {
// jdk1.4.2 serialver
private static final long serialVersionUID = -1952524560588825816L;
private static String copyright = "Copyright \u00a9 1997-1998 IBM Corp. All Rights Reserved.";
//-------------------------------------------------------------------------
// Tons o' Constants...
//-------------------------------------------------------------------------

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -78,8 +78,6 @@ public class IslamicCalendar extends Calendar {
// jdk1.4.2 serialver
private static final long serialVersionUID = -6253365474073869325L;
private static String copyright = "Copyright \u00a9 1997-1998 IBM Corp. All Rights Reserved.";
//-------------------------------------------------------------------------
// Constants...
//-------------------------------------------------------------------------

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -50,8 +50,6 @@ public class JapaneseCalendar extends GregorianCalendar {
// jdk1.4.2 serialver
private static final long serialVersionUID = -2977189902603704691L;
private static String copyright = "Copyright \u00a9 1998 IBM Corp. All Rights Reserved.";
//-------------------------------------------------------------------------
// Constructors...
//-------------------------------------------------------------------------

View file

@ -1,6 +1,6 @@
/*
******************************************************************************
* Copyright (C) 2004, International Business Machines Corporation and *
* Copyright (C) 2004-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
*/
@ -9,8 +9,6 @@ package com.ibm.icu.util;
import java.util.NoSuchElementException;
import com.ibm.icu.impl.ICUResourceBundle;
/**
* <p>Class for enabling iteration over UResourceBundle objects.
* Example of use:<br>