ICU-8854 Dead store to local variable.

X-SVN-Rev: 30923
This commit is contained in:
Abhinav Gupta 2011-11-04 15:17:52 +00:00
parent 82962c12cb
commit 698b723ba9
8 changed files with 8 additions and 17 deletions

View File

@ -1512,7 +1512,7 @@ final class CollationRuleParser
m_current_ = m_optionEnd_;
if ((result & TOKEN_TOP_MASK_) != 0) {
if (newstrength == TOKEN_RESET_) {
top = doSetTop();
doSetTop();
if (before != 0) {
// This is a combination of before and
// indirection like

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -85,7 +85,6 @@ public class CalendarCache
put(oldKeys[i], oldValues[i]);
}
}
oldKeys = oldValues = null; // Help out the garbage collector
}

View File

@ -773,7 +773,6 @@ public class ICUResourceBundle extends UResourceBundle {
if (path.indexOf('/') == -1) { // skip the tokenizer
sub = (ICUResourceBundle) current.handleGet(path, null, requested);
if (sub != null) {
current = sub;
break;
}
} else {

View File

@ -1,7 +1,7 @@
/*
******************************************************************************
*
* Copyright (C) 2009-2010, International Business Machines
* Copyright (C) 2009-2011, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@ -926,7 +926,7 @@ public class UnicodeSetStringSpan {
list[i] = false;
--length;
start = i;
return result += i;
return result + i;
}
}
}

View File

@ -683,11 +683,10 @@ public final class ZoneMeta {
tmp = -offset;
}
int hour, min, sec, millis;
int hour, min, sec;
millis = tmp % 1000;
if (ASSERT) {
Assert.assrt("millis!=0", millis != 0);
Assert.assrt("millis!=0", tmp % 1000 != 0);
}
tmp /= 1000;
sec = tmp % 60;

View File

@ -2970,9 +2970,6 @@ public class Bidi {
this.direction=saveDirection;
this.levels = saveLevels;
this.trailingWSStart = saveTrailingWSStart;
/* free memory for mapping table and visual text */
visualMap = null;
visualText = null;
if (runCount > 1) {
this.direction = MIXED;
}
@ -4778,7 +4775,6 @@ public class Bidi {
for (i = 0; i < count; i++) {
logicalToVisualRunsMap[i] = (int)(keys[i] & 0x00000000FFFFFFFF);
}
keys = null;
isGoodLogicalToVisualRunsMap = true;
}

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2010, International Business Machines Corporation and *
* Copyright (C) 1996-2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -41,8 +41,7 @@ public abstract class UnicodeFilter implements UnicodeMatcher {
offset[0] += UTF16.getCharCount(c);
return U_MATCH;
}
if (offset[0] > limit &&
contains(c = text.char32At(offset[0]))) {
if (offset[0] > limit && contains(text.char32At(offset[0]))) {
// Backup offset by 1, unless the preceding character is a
// surrogate pair -- then backup by 2 (keep offset pointing at
// the lead surrogate).

View File

@ -613,7 +613,6 @@ public class IslamicCalendar extends Calendar {
year = (int)Math.floor( (30 * days + 10646) / 10631.0 );
month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 );
month = Math.min(month, 11);
monthStart = monthStart(year, month);
} else {
// Guess at the number of elapsed full months since the epoch
int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH);