You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2020/10/23 14:32:36 UTC

[atlas] 03/05: ATLAS-4001 : Update poi jar version to 4.1.1

This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit e45cd453a4abf9d0bf254ee127e62f0235039a69
Author: chaitali borole <ch...@cloudera.com>
AuthorDate: Wed Oct 21 18:04:03 2020 +0530

    ATLAS-4001 : Update poi jar version to 4.1.1
---
 pom.xml                                                       | 4 ++--
 repository/src/main/java/org/apache/atlas/util/FileUtils.java | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index a0e2943..cad2e5c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -719,8 +719,8 @@
 
         <!--Apache poi and Open csv-->
         <opencsv.version>5.0</opencsv.version>
-        <poi.version>3.17</poi.version>
-        <poi-ooxml.version>3.17</poi-ooxml.version>
+        <poi.version>4.1.1</poi.version>
+        <poi-ooxml.version>4.1.1</poi-ooxml.version>
 
         <javax-inject.version>1</javax-inject.version>
         <jettison.version>1.3.7</jettison.version>
diff --git a/repository/src/main/java/org/apache/atlas/util/FileUtils.java b/repository/src/main/java/org/apache/atlas/util/FileUtils.java
index e8061d7..71ac9e3 100644
--- a/repository/src/main/java/org/apache/atlas/util/FileUtils.java
+++ b/repository/src/main/java/org/apache/atlas/util/FileUtils.java
@@ -26,6 +26,7 @@ import org.apache.commons.io.FilenameUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.CellType;
 import org.apache.poi.ss.usermodel.Row;
 import org.apache.poi.ss.usermodel.Sheet;
 import org.apache.poi.ss.usermodel.Workbook;
@@ -127,7 +128,7 @@ public class FileUtils {
         for (int c = row.getFirstCellNum(); c < row.getLastCellNum(); c++) {
             Cell cell = row.getCell(c);
 
-            if (cell != null && cell.getCellType() != Cell.CELL_TYPE_BLANK) {
+            if (cell != null && cell.getCellType() != CellType.BLANK) {
                 return false;
             }
         }