https://bz.apache.org/bugzilla/show_bug.cgi?id=63431

--- Comment #2 from Andreas Beeker <[email protected]> ---
Although ChunkedCipherInputStream::read(byte[], int, int, boolean) returns -1,
if no more data can be fetched and so there's no result size of 0, I would
rewrite the original code:

        if (read(b) == 1) {
            return b[0];
        }
        return -1;

to:
return (read(b) == 1) ? b[0] : -1;

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to