aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2008-11-13 19:41:02 +0000
committerJosh Micich <josh@apache.org>2008-11-13 19:41:02 +0000
commit88f94198d8626647bbfaa607fedab30b801b6c2f (patch)
tree1973a093585232161d44ad7b09246a502a35055b /src/java/org/apache/poi/ss
parent1b24850c7cd4251a35ad39a41195da134b194416 (diff)
downloadpoi-88f94198d8626647bbfaa607fedab30b801b6c2f.tar.gz
poi-88f94198d8626647bbfaa607fedab30b801b6c2f.zip
extracted local variable
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@713801 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss')
-rw-r--r--src/java/org/apache/poi/ss/formula/EvaluationCache.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/java/org/apache/poi/ss/formula/EvaluationCache.java b/src/java/org/apache/poi/ss/formula/EvaluationCache.java
index 1681cc7eba..8b0b7cf271 100644
--- a/src/java/org/apache/poi/ss/formula/EvaluationCache.java
+++ b/src/java/org/apache/poi/ss/formula/EvaluationCache.java
@@ -53,7 +53,9 @@ final class EvaluationCache {
public void notifyUpdateCell(int bookIndex, int sheetIndex, EvaluationCell cell) {
FormulaCellCacheEntry fcce = _formulaCellCache.get(cell);
- Loc loc = new Loc(bookIndex, sheetIndex, cell.getRowIndex(), cell.getColumnIndex());
+ int rowIndex = cell.getRowIndex();
+ int columnIndex = cell.getColumnIndex();
+ Loc loc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
PlainValueCellCacheEntry pcce = _plainCellCache.get(loc);
if (cell.getCellType() == HSSFCell.CELL_TYPE_FORMULA) {
@@ -61,11 +63,11 @@ final class EvaluationCache {
fcce = new FormulaCellCacheEntry();
if (pcce == null) {
if (_evaluationListener != null) {
- _evaluationListener.onChangeFromBlankValue(sheetIndex, cell.getRowIndex(),
- cell.getColumnIndex(), cell, fcce);
+ _evaluationListener.onChangeFromBlankValue(sheetIndex, rowIndex,
+ columnIndex, cell, fcce);
}
- updateAnyBlankReferencingFormulas(bookIndex, sheetIndex, cell.getRowIndex(),
- cell.getColumnIndex());
+ updateAnyBlankReferencingFormulas(bookIndex, sheetIndex, rowIndex,
+ columnIndex);
}
_formulaCellCache.put(cell, fcce);
} else {
@@ -89,11 +91,10 @@ final class EvaluationCache {
pcce = new PlainValueCellCacheEntry(value);
if (fcce == null) {
if (_evaluationListener != null) {
- _evaluationListener.onChangeFromBlankValue(sheetIndex, cell
- .getRowIndex(), cell.getColumnIndex(), cell, pcce);
+ _evaluationListener.onChangeFromBlankValue(sheetIndex, rowIndex, columnIndex, cell, pcce);
}
updateAnyBlankReferencingFormulas(bookIndex, sheetIndex,
- cell.getRowIndex(), cell.getColumnIndex());
+ rowIndex, columnIndex);
}
_plainCellCache.put(loc, pcce);
}
@@ -153,7 +154,7 @@ final class EvaluationCache {
if (a == null) {
return false;
}
- Class cls = a.getClass();
+ Class<?> cls = a.getClass();
if (cls != b.getClass()) {
// value type is changing
return false;