While reading the Lucene JavaDoc I came across writeVInt 
<https://lucene.apache.org/core/8_9_0/core/org/apache/lucene/store/DataOutput.html#writeVInt-int->
 & readVInt 
<https://lucene.apache.org/core/8_9_0/core/org/apache/lucene/store/DataInput.html#readVInt-->
 from DataOutput and DataInput base classes. It says for writeVint

Parameters:
i - Smaller values take fewer bytes. Negative numbers are supported, but should 
be avoided.

And for readVint "Negative numbers are supported, but should be avoided.”

This seems like an odd statement. Why would something be supported but should 
be avoided? Should I submit a PR to prevent negative integers?

Reply via email to