]> source.dussan.org Git - poi.git/commitdiff
revert back to changes of bug 57840
authorAndreas Beeker <kiwiwings@apache.org>
Sun, 12 Jun 2016 00:54:01 +0000 (00:54 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sun, 12 Jun 2016 00:54:01 +0000 (00:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747945 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java

index 5c8b385b76e16d0ba0f80911e694f8bfc1a9fa03..13b15bf28c565241c8b0c7b73a58c305714fda5d 100644 (file)
@@ -72,7 +72,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
         _cells = new TreeMap<Integer, XSSFCell>();
         for (CTCell c : row.getCArray()) {
             XSSFCell cell = new XSSFCell(this, c);
-            _cells.put(cell.getColumnIndex(), cell);
+            _cells.put(new Integer(cell.getColumnIndex()), cell);
             sheet.onReadCell(cell);
         }
     }
@@ -198,7 +198,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
      */
     public XSSFCell createCell(int columnIndex, int type) {
         CTCell ctCell;
-        XSSFCell prev = _cells.get(columnIndex);
+        XSSFCell prev = _cells.get(new Integer(columnIndex));
         if(prev != null){
             ctCell = prev.getCTCell();
             ctCell.set(CTCell.Factory.newInstance());
@@ -210,7 +210,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
         if (type != Cell.CELL_TYPE_BLANK) {
                xcell.setCellType(type);
         }
-        _cells.put(columnIndex, xcell);
+        _cells.put(new Integer(columnIndex), xcell);
         return xcell;
     }
 
@@ -236,7 +236,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
     public XSSFCell getCell(int cellnum, MissingCellPolicy policy) {
        if(cellnum < 0) throw new IllegalArgumentException("Cell index must be >= 0");
 
-        XSSFCell cell = _cells.get(cellnum);
+        XSSFCell cell = _cells.get(new Integer(cellnum));
        if(policy == RETURN_NULL_AND_BLANK) {
                return cell;
        }
@@ -455,7 +455,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
         if(cell.getCellType() == Cell.CELL_TYPE_FORMULA) {
            _sheet.getWorkbook().onDeleteFormula(xcell);
         }
-        _cells.remove(cell.getColumnIndex());
+        _cells.remove(new Integer(cell.getColumnIndex()));
     }
 
     /**