@@ -115,7 +115,7 @@ public void validationWithSkipBits() throws IOException
115115 changedStream [0 ] |= 0x40 ;
116116 changedStream [0 ] |= 0x0C ;
117117 changedStream [1 ] |= 0x70 ;
118- changedStream [2 ] |= 0xF0 ;
118+ changedStream [2 ] |= ( byte ) 0xF0 ;
119119 changedStream [3 ] |= 0x7C ;
120120 changedStream [3 ] |= 0x03 ;
121121
@@ -155,9 +155,9 @@ public void validationWithSkipBytes() throws IOException
155155 System .arraycopy (originalStream , 0 , changedStream , 0 , changedStream .length );
156156 // put rubbish to the skipped dummy bits and at the end
157157 changedStream [0 ] |= 0x7F ;
158- changedStream [1 ] |= 0x80 ;
158+ changedStream [1 ] |= ( byte ) 0x80 ;
159159 changedStream [1 ] |= 0x1F ;
160- changedStream [2 ] |= 0xE0 ;
160+ changedStream [2 ] |= ( byte ) 0xE0 ;
161161 changedStream [2 ] |= 0x03 ;
162162
163163 try (final ValidationBitStreamReader reader = new ValidationBitStreamReader (changedStream ))
@@ -248,8 +248,8 @@ public void validationWithNan() throws IOException
248248 System .arraycopy (originalStream , 0 , changedStream , 0 , changedStream .length );
249249 // change NaN to binary represantation which is not used by writer
250250 changedStream [0 ] |= 0x40 ;
251- changedStream [1 ] |= 0xFF ;
252- changedStream [2 ] |= 0x80 ;
251+ changedStream [1 ] |= ( byte ) 0xFF ;
252+ changedStream [2 ] |= ( byte ) 0x80 ;
253253
254254 try (final ValidationBitStreamReader reader = new ValidationBitStreamReader (changedStream ))
255255 {
@@ -277,8 +277,8 @@ public void validationWithNanAndSetPosition() throws IOException
277277 System .arraycopy (originalStream , 0 , changedStream , 0 , changedStream .length );
278278 // change NaN to binary representation which is not used by writer
279279 changedStream [0 ] |= 0x40 ;
280- changedStream [1 ] |= 0xFF ;
281- changedStream [2 ] |= 0x80 ;
280+ changedStream [1 ] |= ( byte ) 0xFF ;
281+ changedStream [2 ] |= ( byte ) 0x80 ;
282282
283283 try (final ValidationBitStreamReader reader = new ValidationBitStreamReader (changedStream ))
284284 {
0 commit comments