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:
parent
9e46ee937c
commit
5e52b6f4e9
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user