diff options
author | Josh Micich <josh@apache.org> | 2008-12-03 19:22:45 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2008-12-03 19:22:45 +0000 |
commit | 106e50851a93a4a22a981c59bda65d93edde8e49 (patch) | |
tree | bc265f45e4f4bfb64a0f73a58fe3638c81ae6bf3 /src/java/org/apache/poi/ss/formula/EvaluationTracker.java | |
parent | 21e9b304ecf1a6479aca4f3fc85e5583668c854d (diff) | |
download | poi-106e50851a93a4a22a981c59bda65d93edde8e49.tar.gz poi-106e50851a93a4a22a981c59bda65d93edde8e49.zip |
fixed generics compiler warnings for poi.ss.formula
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@723021 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss/formula/EvaluationTracker.java')
-rwxr-xr-x | src/java/org/apache/poi/ss/formula/EvaluationTracker.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/java/org/apache/poi/ss/formula/EvaluationTracker.java b/src/java/org/apache/poi/ss/formula/EvaluationTracker.java index eda62da8b8..807d398a95 100755 --- a/src/java/org/apache/poi/ss/formula/EvaluationTracker.java +++ b/src/java/org/apache/poi/ss/formula/EvaluationTracker.java @@ -37,14 +37,14 @@ import org.apache.poi.hssf.usermodel.HSSFCell; */ final class EvaluationTracker { // TODO - consider deleting this class and letting CellEvaluationFrame take care of itself - private final List _evaluationFrames; - private final Set _currentlyEvaluatingCells; + private final List<CellEvaluationFrame> _evaluationFrames; + private final Set<FormulaCellCacheEntry> _currentlyEvaluatingCells; private final EvaluationCache _cache; public EvaluationTracker(EvaluationCache cache) { _cache = cache; - _evaluationFrames = new ArrayList(); - _currentlyEvaluatingCells = new HashSet(); + _evaluationFrames = new ArrayList<CellEvaluationFrame>(); + _currentlyEvaluatingCells = new HashSet<FormulaCellCacheEntry>(); } /** @@ -79,7 +79,7 @@ final class EvaluationTracker { if (nFrames < 1) { throw new IllegalStateException("Call to endEvaluate without matching call to startEvaluate"); } - CellEvaluationFrame frame = (CellEvaluationFrame) _evaluationFrames.get(nFrames-1); + CellEvaluationFrame frame = _evaluationFrames.get(nFrames-1); frame.updateFormulaResult(result); } @@ -102,7 +102,7 @@ final class EvaluationTracker { } nFrames--; - CellEvaluationFrame frame = (CellEvaluationFrame) _evaluationFrames.get(nFrames); + CellEvaluationFrame frame = _evaluationFrames.get(nFrames); if (cce != frame.getCCE()) { throw new IllegalStateException("Wrong cell specified. "); } @@ -117,7 +117,7 @@ final class EvaluationTracker { if (prevFrameIndex < 0) { // Top level frame, there is no 'cell' above this frame that is using the current cell } else { - CellEvaluationFrame consumingFrame = (CellEvaluationFrame) _evaluationFrames.get(prevFrameIndex); + CellEvaluationFrame consumingFrame = _evaluationFrames.get(prevFrameIndex); consumingFrame.addSensitiveInputCell(cce); } } @@ -129,7 +129,7 @@ final class EvaluationTracker { if (prevFrameIndex < 0) { // Top level frame, there is no 'cell' above this frame that is using the current cell } else { - CellEvaluationFrame consumingFrame = (CellEvaluationFrame) _evaluationFrames.get(prevFrameIndex); + CellEvaluationFrame consumingFrame = _evaluationFrames.get(prevFrameIndex); if (value == BlankEval.INSTANCE) { consumingFrame.addUsedBlankCell(bookIndex, sheetIndex, rowIndex, columnIndex); } else { |