mirror of https://github.com/apache/nifi.git
NIFI-335: Fixed bug that returned a byte instead of an int from CompressionInputStream.read(), which resulted in negative values getting returned when it should not have
This commit is contained in:
parent
40e1fcbb98
commit
a00aade0e5
|
@ -142,7 +142,7 @@ public class CompressionInputStream extends InputStream {
|
|||
return -1;
|
||||
}
|
||||
|
||||
return buffer[bufferIndex++];
|
||||
return buffer[bufferIndex++] & 0xFF;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue