changed assertion

This commit is contained in:
Denis Molony 2016-03-18 08:47:01 +11:00
parent a569a8aee7
commit e3625c4e0f

View File

@ -192,21 +192,23 @@ class Cell implements Comparable<Cell>, Value
@Override
public String getText ()
{
assert type == CellType.VALUE;
assert type == CellType.VALUE : "Cell type: " + type;
return value.getText ();
}
@Override
public boolean isError ()
{
assert type == CellType.VALUE;
assert type == CellType.VALUE : "Cell type: " + type;
return value.isError ();
}
@Override
public boolean isNotAvailable ()
{
assert type == CellType.VALUE;
// assert type == CellType.VALUE : "Cell type: " + type;
if (!isValue ())
return true;
return value.isNotAvailable ();
}