diff options
author | Dominik Stadler <centic@apache.org> | 2015-09-13 19:05:55 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2015-09-13 19:05:55 +0000 |
commit | d6254deb3bce0ac60963768d7d613371c8686e13 (patch) | |
tree | a28c3c99bfde99e4027c94bd845ed4842ccf83b9 /src/java/org | |
parent | d390a9bf3f83f15bc5c23a678a0be0558c4a38af (diff) | |
download | poi-d6254deb3bce0ac60963768d7d613371c8686e13.tar.gz poi-d6254deb3bce0ac60963768d7d613371c8686e13.zip |
Eclipse warnings, comment out dead code, close resources, enhance unit tests, javadoc, ...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/hssf/usermodel/HSSFCell.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java index 33a5ce6aaf..d36347549b 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java @@ -413,7 +413,7 @@ public class HSSFCell implements Cell { errRec.setColumn(col); if (setValue) { - errRec.setValue((byte)HSSFErrorConstants.ERROR_VALUE); + errRec.setValue(FormulaError.VALUE.getCode()); } errRec.setXFIndex(styleIndex); errRec.setRow(row); @@ -821,7 +821,7 @@ public class HSSFCell implements Cell { case CELL_TYPE_NUMERIC: return NumberToTextConverter.toText(((NumberRecord)_record).getValue()); case CELL_TYPE_ERROR: - return HSSFErrorConstants.getText(((BoolErrRecord) _record).getErrorValue()); + return FormulaError.forInt(((BoolErrRecord)_record).getErrorValue()).getString(); case CELL_TYPE_FORMULA: // should really evaluate, but HSSFCell can't call HSSFFormulaEvaluator // just use cached formula result instead @@ -839,7 +839,7 @@ public class HSSFCell implements Cell { case CELL_TYPE_NUMERIC: return NumberToTextConverter.toText(fr.getValue()); case CELL_TYPE_ERROR: - return HSSFErrorConstants.getText(fr.getCachedErrorValue()); + return FormulaError.forInt(fr.getCachedErrorValue()).getString(); } throw new IllegalStateException("Unexpected formula result type (" + _cellType + ")"); } @@ -964,7 +964,7 @@ public class HSSFCell implements Cell { * Returns a string representation of the cell * * This method returns a simple representation, - * anthing more complex should be in user code, with + * anything more complex should be in user code, with * knowledge of the semantics of the sheet being processed. * * Formula cells return the formula string, |