]> source.dussan.org Git - poi.git/commitdiff
avoid redundant null check
authorJaven O'Neal <onealj@apache.org>
Thu, 18 Feb 2016 02:03:11 +0000 (02:03 +0000)
committerJaven O'Neal <onealj@apache.org>
Thu, 18 Feb 2016 02:03:11 +0000 (02:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730994 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java

index 9803f0d9ec4674dcee05a092c5659a7b6c5fa8e2..839f6921f6d700c20d6704664fbb34af97e033b7 100644 (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");
             }