ICU-5445 Fix some default eclipse warnings
X-SVN-Rev: 21020
This commit is contained in:
parent
086e09bf04
commit
04ebc231f9
@ -23,7 +23,6 @@ import java.util.Enumeration;
|
||||
import java.util.jar.JarEntry;
|
||||
|
||||
import com.ibm.icu.dev.test.TestFmwk;
|
||||
import com.ibm.icu.impl.ICUData;
|
||||
import com.ibm.icu.impl.ICUResourceBundle;
|
||||
import com.ibm.icu.impl.Utility;
|
||||
import com.ibm.icu.text.UTF16;
|
||||
|
@ -1,7 +1,7 @@
|
||||
//##header VERSION_1.5
|
||||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2002-2006, International Business Machines Corporation and *
|
||||
* Copyright (C) 2002-2007, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -15,7 +15,9 @@
|
||||
package com.ibm.icu.dev.tool.docs;
|
||||
|
||||
import com.sun.javadoc.*;
|
||||
import com.sun.tools.doclets.*;
|
||||
//#ifndef VERSION_1.5
|
||||
//import com.sun.tools.doclets.*;
|
||||
//#endif
|
||||
//#ifdef VERSION_1.5
|
||||
|
||||
import com.sun.tools.doclets.internal.toolkit.taglets.*;
|
||||
|
@ -739,7 +739,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
mant=new byte[d]; // we know the length
|
||||
j=offset; // input offset
|
||||
if (exotic)
|
||||
{exotica:do{ // slow: check for exotica
|
||||
{do{ // slow: check for exotica
|
||||
{int $4=d;i=0;for(;$4>0;$4--,i++){
|
||||
if (i==dotoff)
|
||||
j++; // at dot
|
||||
@ -758,7 +758,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
}/*i*/
|
||||
}while(false);}/*exotica*/
|
||||
else
|
||||
{simple:do{
|
||||
{do{
|
||||
{int $5=d;i=0;for(;$5>0;$5--,i++){
|
||||
if (i==dotoff)
|
||||
j++;
|
||||
@ -858,7 +858,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
// We fastpath commoners
|
||||
if (num<=9)
|
||||
if (num>=(-9))
|
||||
{singledigit:do{
|
||||
{do{
|
||||
// very common single digit case
|
||||
{/*select*/
|
||||
if (num==0)
|
||||
@ -1184,7 +1184,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
usellen=lhs.mant.length;
|
||||
user=rhs.mant;
|
||||
userlen=rhs.mant.length;
|
||||
{padder:do{/*select*/
|
||||
{do{/*select*/
|
||||
if (lhs.exp==rhs.exp)
|
||||
{/* no padding needed */
|
||||
// This is the most common, and fastest, path
|
||||
@ -1267,12 +1267,12 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
if (((lhs.ind==isneg)?1:0)==((rhs.ind==isneg)?1:0)) // same sign, 0 non-negative
|
||||
mult=1;
|
||||
else
|
||||
{signdiff:do{ // different signs, so subtraction is needed
|
||||
{do{ // different signs, so subtraction is needed
|
||||
mult=-1; // will cause subtract
|
||||
/* Before we can subtract we must determine which is the larger,
|
||||
as our add/subtract routine only handles non-negative results
|
||||
so we may need to swap the operands. */
|
||||
{swaptest:do{/*select*/
|
||||
{do{/*select*/
|
||||
if (rhs.ind==iszero){
|
||||
// original A bigger
|
||||
}else if ((usellen<userlen)|(lhs.ind==iszero))
|
||||
@ -2565,7 +2565,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
*/
|
||||
|
||||
/* determine form */
|
||||
{setform:do{/*select*/
|
||||
{do{/*select*/
|
||||
if (exdigits==(-1))
|
||||
num.form=(byte)com.ibm.icu.math.MathContext.PLAIN;
|
||||
else if (num.ind==iszero)
|
||||
@ -3439,7 +3439,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
sb.append('.').append(cmant,1,cmant.length-1);
|
||||
}
|
||||
else
|
||||
{engineering:do{
|
||||
{do{
|
||||
sig=euse%3; // common
|
||||
if (sig<0)
|
||||
sig=3+sig; // negative exponent
|
||||
@ -3799,7 +3799,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
throw new java.lang.ArithmeticException("Integer overflow");
|
||||
|
||||
if (code=='R')
|
||||
{remainder:do{
|
||||
{do{
|
||||
/* We were doing Remainder -- return the residue */
|
||||
if (res.mant[0]==0) // no integer part was found
|
||||
return clone(lhs).finish(set,false); // .. so return lhs, canonical
|
||||
@ -3849,7 +3849,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
/* Here for Divide or Integer Divide */
|
||||
// handle scaled results first ['I' always scale 0, optional for 'D']
|
||||
if (scale>=0)
|
||||
{scaled:do{
|
||||
{do{
|
||||
// say 'scale have res.exp len' scale have res.exp res.mant.length
|
||||
if (have!=res.mant.length)
|
||||
// already padded with 0's, so just adjust exponent
|
||||
@ -4021,7 +4021,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
/* result so far (digit) could be -90 through 99 */
|
||||
if (digit<10)
|
||||
if (digit>=0)
|
||||
{quick:do{ // 0-9
|
||||
{do{ // 0-9
|
||||
reb[op]=(byte)digit;
|
||||
digit=0; // no carry
|
||||
continue op;
|
||||
@ -4173,7 +4173,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
|
||||
// decide rounding adjustment depending on mode, sign, and discarded digits
|
||||
increment=0; // bumper
|
||||
{modes:do{/*select*/
|
||||
{do{/*select*/
|
||||
if (mode==ROUND_HALF_UP)
|
||||
{ // default first [most common]
|
||||
if (first>=5)
|
||||
@ -4233,7 +4233,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
}while(false);}/*modes*/
|
||||
|
||||
if (increment!=0)
|
||||
{bump:do{
|
||||
{do{
|
||||
if (ind==iszero)
|
||||
{
|
||||
// we must not subtract from 0, but result is trivial anyway
|
||||
@ -4343,7 +4343,7 @@ public class BigDecimal extends java.lang.Number implements java.io.Serializable
|
||||
// non-0 result; ind will be correct
|
||||
// remove leading zeros [e.g., after subtract]
|
||||
if (i>0)
|
||||
{delead:do{
|
||||
{do{
|
||||
newmant=new byte[this.mant.length-i];
|
||||
java.lang.System.arraycopy((java.lang.Object)this.mant,i,(java.lang.Object)newmant,0,this.mant.length-i);
|
||||
this.mant=newmant;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2003-2006,
|
||||
* Copyright (C) 2003-2007,
|
||||
* International Business Machines Corporation and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -269,7 +269,7 @@ class RBBIRuleScanner {
|
||||
// OR this rule into the appropriate group of them.
|
||||
//
|
||||
|
||||
int destRules = (fReverseRule ? fRB.fReverseTree : fRB.fDefaultTree);
|
||||
int destRules = (fReverseRule ? RBBIRuleBuilder.fReverseTree : fRB.fDefaultTree);
|
||||
|
||||
if (fRB.fTreeRoots[destRules] != null) {
|
||||
// This is not the first rule encounted.
|
||||
@ -415,13 +415,13 @@ class RBBIRuleScanner {
|
||||
} else if (opt.equals("LBCMNoChain")) {
|
||||
fRB.fLBCMNoChain = true;
|
||||
} else if (opt.equals("forward")) {
|
||||
fRB.fDefaultTree = fRB.fForwardTree;
|
||||
fRB.fDefaultTree = RBBIRuleBuilder.fForwardTree;
|
||||
} else if (opt.equals("reverse")) {
|
||||
fRB.fDefaultTree = fRB.fReverseTree;
|
||||
fRB.fDefaultTree = RBBIRuleBuilder.fReverseTree;
|
||||
} else if (opt.equals("safe_forward")) {
|
||||
fRB.fDefaultTree = fRB.fSafeFwdTree;
|
||||
fRB.fDefaultTree = RBBIRuleBuilder.fSafeFwdTree;
|
||||
} else if (opt.equals("safe_reverse")) {
|
||||
fRB.fDefaultTree = fRB.fSafeRevTree;
|
||||
fRB.fDefaultTree = RBBIRuleBuilder.fSafeRevTree;
|
||||
} else if (opt.equals("lookAheadHardBreak")) {
|
||||
fRB.fLookAheadHardBreak = true;
|
||||
} else {
|
||||
|
@ -14,7 +14,6 @@ import java.util.MissingResourceException;
|
||||
|
||||
import com.ibm.icu.impl.ICUDebug;
|
||||
import com.ibm.icu.impl.ICUResourceBundle;
|
||||
import com.ibm.icu.impl.LocaleUtility;
|
||||
|
||||
/**
|
||||
* A class encapsulating a currency, as defined by ISO 4217. A
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @(#)TimeZone.java 1.51 00/01/19
|
||||
*
|
||||
* Copyright (C) 1996-2006, International Business Machines
|
||||
* Copyright (C) 1996-2007, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*/
|
||||
|
||||
@ -12,9 +12,7 @@ import java.lang.ref.SoftReference;
|
||||
import java.util.Date;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
|
||||
import com.ibm.icu.impl.ICUResourceBundle;
|
||||
import com.ibm.icu.impl.TimeZoneAdapter;
|
||||
import com.ibm.icu.impl.ZoneMeta;
|
||||
import com.ibm.icu.text.SimpleDateFormat;
|
||||
|
Loading…
Reference in New Issue
Block a user