From: Javen O'Neal Date: Thu, 18 Feb 2016 02:03:11 +0000 (+0000) Subject: avoid redundant null check X-Git-Tag: REL_3_14_FINAL~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb43e5459415ba7e3ba0f24f60af4039be9f537e;p=poi.git avoid redundant null check git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730994 13f79535-47bb-0310-9956-ffa450edef68 --- 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"); }