mirror of https://github.com/apache/poi.git
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
0b0911db6b
commit
cb43e54594
|
@ -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