From: Josh Micich Date: Thu, 13 Nov 2008 19:41:02 +0000 (+0000) Subject: extracted local variable X-Git-Tag: REL_3_5_BETA4~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88f94198d8626647bbfaa607fedab30b801b6c2f;p=poi.git extracted local variable git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@713801 13f79535-47bb-0310-9956-ffa450edef68 --- 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;