You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2016/02/18 03:03:12 UTC
svn commit: r1730994 -
/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
Author: onealj
Date: Thu Feb 18 02:03:11 2016
New Revision: 1730994
URL: http://svn.apache.org/viewvc?rev=1730994&view=rev
Log:
avoid redundant null check
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java?rev=1730994&r1=1730993&r2=1730994&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java Thu Feb 18 02:03:11 2016
@@ -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");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org