avoid redundant null check

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-02-18 02:03:11 +00:00
parent 0b0911db6b
commit cb43e54594
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}