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:
parent
8d13b85a8d
commit
bafe7814ff
@ -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>
|
||||
|
@ -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())
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -1330,7 +1330,6 @@ public class SXSSFSheet implements Sheet, Cloneable
|
||||
if(entry.getValue()==row)
|
||||
return entry.getKey().intValue();
|
||||
}
|
||||
assert false;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,6 @@ public class SheetDataWriter {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
assert false;
|
||||
throw new RuntimeException("Huh?");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user