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 @Override
public String getText () public String getText ()
{ {
assert type == CellType.VALUE; assert type == CellType.VALUE : "Cell type: " + type;
return value.getText (); return value.getText ();
} }
@Override @Override
public boolean isError () public boolean isError ()
{ {
assert type == CellType.VALUE; assert type == CellType.VALUE : "Cell type: " + type;
return value.isError (); return value.isError ();
} }
@Override @Override
public boolean isNotAvailable () public boolean isNotAvailable ()
{ {
assert type == CellType.VALUE; // assert type == CellType.VALUE : "Cell type: " + type;
if (!isValue ())
return true;
return value.isNotAvailable (); return value.isNotAvailable ();
} }