From: Javen O'Neal Date: Thu, 18 Feb 2016 02:03:11 +0000 (+0000) Subject: avoid redundant null check X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e52b6f4e9d4617912b8be4505f741ae437e1b03;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"); }