SPR-17492: FastByteArrayOutputStream.read byte-to-int conversion
This commit is contained in:
committed by
Juergen Hoeller
parent
88cb126511
commit
12f168290d
@@ -367,7 +367,7 @@ public class FastByteArrayOutputStream extends OutputStream {
|
||||
else {
|
||||
if (this.nextIndexInCurrentBuffer < this.currentBufferLength) {
|
||||
this.totalBytesRead++;
|
||||
return this.currentBuffer[this.nextIndexInCurrentBuffer++];
|
||||
return this.currentBuffer[this.nextIndexInCurrentBuffer++] & 0xFF;
|
||||
}
|
||||
else {
|
||||
if (this.buffersIterator.hasNext()) {
|
||||
|
||||
Reference in New Issue
Block a user