alishia / tt4j

Automatically exported from code.google.com/p/tt4j
0 stars 0 forks source link

TreeTaggerModelReader contains assert statements with side-effects #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
TreeTaggerModelReader contains two "assert" statement which read from a stream. 
It is actually necessary, that they read from the stream. If assertions are 
disabled, then the code fails miserably.

assert 0xFFFFFFFE == in.readInt(); // Assert marker
assert 0x00 == in.readByte(); // Assert end of block
...
assert 0x00 == in.readByte(); // Assert end of block

Original issue reported on code.google.com by richard.eckart on 14 Feb 2014 at 2:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r153.

Original comment by richard.eckart on 14 Feb 2014 at 2:11