Skip to content

Commit

Permalink
MET-6076 added parentheses to make the operator precedence explicit (…
Browse files Browse the repository at this point in the history
…sonar).
  • Loading branch information
pWoz committed Aug 19, 2024
1 parent 6c6cd9c commit 0000b5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public int read(byte[] buffer, int offset, int length) throws IOException {

while (additionallyReadBytes != -1 && readBytes < length) {
additionallyReadBytes = source.read(buffer, offset + readBytes, length - readBytes);
readBytes = additionallyReadBytes != -1 ? readBytes + additionallyReadBytes : readBytes;
readBytes = additionallyReadBytes != -1 ? (readBytes + additionallyReadBytes) : readBytes;
}
return readBytes;
}
Expand Down

0 comments on commit 0000b5e

Please sign in to comment.