summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-02-18 02:03:11 +0000
committerJaven O'Neal <onealj@apache.org>2016-02-18 02:03:11 +0000
commitcb43e5459415ba7e3ba0f24f60af4039be9f537e (patch)
treef716fb6c386731806bd7899222284d164056b6b1
parent0b0911db6b99fe04c15e25653afe6350d4b70583 (diff)
downloadpoi-cb43e5459415ba7e3ba0f24f60af4039be9f537e.tar.gz
poi-cb43e5459415ba7e3ba0f24f60af4039be9f537e.zip
avoid redundant null check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730994 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
index 9803f0d9ec..839f6921f6 100644
--- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
+++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
@@ -274,7 +274,7 @@ public class SXSSFCell implements Cell {
if (value != null) {
ensureTypeOrFormulaType(CELL_TYPE_STRING);
- if(value != null && value.length() > SpreadsheetVersion.EXCEL2007.getMaxTextLength()){
+ if (value.length() > SpreadsheetVersion.EXCEL2007.getMaxTextLength()) {
throw new IllegalArgumentException("The maximum length of cell contents (text) is 32,767 characters");
}