reckart / tt4j

TreeTagger for Java
http://reckart.github.io/tt4j/
Apache License 2.0
16 stars 7 forks source link

TreeTaggerModelReader contains assert statements with side-effects #16

Closed reckart closed 9 years ago

reckart commented 9 years ago

Original issue 16 created by reckart on 2014-02-14T14:05:02.000Z:

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

reckart commented 9 years ago

Comment #1 originally posted by reckart on 2014-02-14T14:11:55.000Z:

This issue was closed by revision r153.