You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2016/06/12 00:54:01 UTC
svn commit: r1747945 -
/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
Author: kiwiwings
Date: Sun Jun 12 00:54:01 2016
New Revision: 1747945
URL: http://svn.apache.org/viewvc?rev=1747945&view=rev
Log:
revert back to changes of bug 57840
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java?rev=1747945&r1=1747944&r2=1747945&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java Sun Jun 12 00:54:01 2016
@@ -72,7 +72,7 @@ public class XSSFRow implements Row, Com
_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, Com
*/
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, Com
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, Com
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, Com
if(cell.getCellType() == Cell.CELL_TYPE_FORMULA) {
_sheet.getWorkbook().onDeleteFormula(xcell);
}
- _cells.remove(cell.getColumnIndex());
+ _cells.remove(new Integer(cell.getColumnIndex()));
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org