Skip to content

Commit e7ee931

Browse files
committed
minor formatting
1 parent bafdc05 commit e7ee931

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jbbp/src/main/java/com/igormaznitsa/jbbp/io/JBBPBitInputStream.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ public int read(final byte[] array, final int offset, final int length) throws I
269269
* blocks until some input is available; otherwise, no
270270
* bytes are read and {@code 0} is returned.
271271
*
272-
* @param array target array
273-
* @param offset offset in the target array
274-
* @param length the length of data portion to be read
272+
* @param array target array
273+
* @param offset offset in the target array
274+
* @param length the length of data portion to be read
275275
* @param enablePartialBitsOnEOF if true then already accumulated partly read bit field data returned in case EOF, -1 otherwise.
276276
* @return number of read bytes from the wrapped input stream
277277
* @throws IOException thrown if any transport error
@@ -1048,7 +1048,7 @@ public int readBits(final JBBPBitNumber numOfBitsToRead) throws IOException {
10481048
* since 0 bit and make reversion to return bits in the order according the thread mode.
10491049
* Behaviour in case of missing bit data can be tuned by the special argument flag and if it is true then -1 returned otherwise current accumulated bit data returned.
10501050
*
1051-
* @param numOfBitsToRead the number of bits to be read, must be 1..8
1051+
* @param numOfBitsToRead the number of bits to be read, must be 1..8
10521052
* @param enablePartialBitsOnEOF if true then already accumulated partly read bit field data returned in case EOF, -1 otherwise.
10531053
* @return the read bits as integer, -1 if the end of stream has been reached or if allowed end of stream flag and not all bits read.
10541054
* @throws IOException it will be thrown for transport errors to be read
@@ -1073,7 +1073,7 @@ public int readBits(final JBBPBitNumber numOfBitsToRead,
10731073
if (numOfBitsAsNumber == this.bitsInBuffer) {
10741074
result = this.bitBuffer;
10751075
if (this.bitOrderMode == JBBPBitOrder.MSB0_DIRECT) {
1076-
result >>>= (8-this.bitsInBuffer);
1076+
result >>>= (8 - this.bitsInBuffer);
10771077
}
10781078
this.bitBuffer = 0;
10791079
this.bitsInBuffer = 0;

0 commit comments

Comments
 (0)