Bugzilla 53271 - Removed unconditional asserts in SXSSF

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1342604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2012-05-25 12:53:12 +00:00
parent a91a13bb2a
commit d677bc00f2
6 changed files with 1 additions and 9 deletions

View File

@ -34,6 +34,7 @@
<changes>
<release version="3.9-beta1" date="2012-??-??">
<action dev="poi-developers" type="fix">53271 - Removed unconditional asserts in SXSSF</action>
<action dev="poi-developers" type="add">53025 - Updatad documentation and example on using Data Validations </action>
<action dev="poi-developers" type="add">53227 - Corrected AddDimensionedImage.java to support XSSF/SXSSF </action>
<action dev="poi-developers" type="add">53058 - Utility for representing drawings contained in a binary Excel file as a XML tree</action>

View File

@ -728,10 +728,6 @@ public class SXSSFCell implements Cell
}
void ensureTypeOrFormulaType(int type)
{
assert type==CELL_TYPE_NUMERIC||
type==CELL_TYPE_STRING||
type==CELL_TYPE_BOOLEAN||
type==CELL_TYPE_ERROR;
if(_value.getType()==type)
{
if(type==CELL_TYPE_STRING&&((StringValue)_value).isRichText())

View File

@ -212,7 +212,6 @@ public class SXSSFRow implements Row
*/
public Cell getCell(int cellnum, MissingCellPolicy policy)
{
assert false;
Cell cell = getCell(cellnum);
if(policy == RETURN_NULL_AND_BLANK)
{

View File

@ -1330,7 +1330,6 @@ public class SXSSFSheet implements Sheet, Cloneable
if(entry.getValue()==row)
return entry.getKey().intValue();
}
assert false;
return -1;
}
}

View File

@ -244,7 +244,6 @@ public class SXSSFWorkbook implements Workbook
XSSFSheet getXSSFSheet(SXSSFSheet sheet)
{
XSSFSheet result=_sxFromXHash.get(sheet);
assert result!=null;
return result;
}
@ -543,7 +542,6 @@ public class SXSSFWorkbook implements Workbook
*/
public int getSheetIndex(Sheet sheet)
{
assert sheet instanceof SXSSFSheet;
return _wb.getSheetIndex(getXSSFSheet((SXSSFSheet)sheet));
}

View File

@ -204,7 +204,6 @@ public class SheetDataWriter {
break;
}
default: {
assert false;
throw new RuntimeException("Huh?");
}
}