Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
In class CompressedLargeMessageControllerImpl
this function is called in a number of other methods, but since there is an exception and no handler, it turns out that part of the code is unreachable
The code is unreachable in these cases:
1) the line with ```return 0``` in unreachable
2) the line with ```return 0``` in unreachable
3) the line with ```return 0``` in unreachable
4) the line with ```return 0``` in unreachable
5) the line with ```return (short) (getByte(index) & 0xFF)``` in unreachable
6) the line with ```return getShort(index) & 0xFFFF``` in unreachable
7) the line with ```return getInt(index) & 0xFFFFFFFFL``` in unreachable
8) the line with ```dst[i] = getByte(index++)``` in unreachable
9) the line with ```dst.writerIndex(dst.writerIndex() + length)``` in unreachable
10) the line with ```return (char) getShort(index)``` in unreachable
11) the line with ```return Double.longBitsToDouble(getLong(index))``` in unreachable
12) the line with ```return Float.intBitsToFloat(getInt(index));``` in unreachable