Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 21353136 authored by László Dávid's avatar László Dávid Committed by Danny Baumann
Browse files

32 bit int shifted by an amount not in the range -31..31 (FindBugs)

Java language specification:
"If the promoted type of the left-hand operand is int, only the five
lowest-order bits of the right-hand operand are used as the shift distance.
It is as if the right-hand operand were subjected to a bitwise logical AND
operator & (§15.22.1) with the mask value 0x1f.
The shift distance actually used is therefore always
in the range 0 to 31, inclusive."

Change-Id: If69ca0410115581e6593ccfe3ba154c3fe7d6eba
parent 9db99440
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment