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:
Mark Payne 2015-02-22 11:46:00 -05:00
parent 40e1fcbb98
commit a00aade0e5
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public class CompressionInputStream extends InputStream {
return -1;
}
return buffer[bufferIndex++];
return buffer[bufferIndex++] & 0xFF;
}
@Override