Shift Count is Out of Range (SCOR)

Description:

SCOR detects if the range of shift count operand is not within [0,31] for the int type, or [0,63] for the long type. It doesn't produce this message when the distance between maximum and minimum values of the shift count is greater than 255. So the message will not be reported if shift count is just a variable of integer type.

Example:

public int foo(int x) {
     int y = 128;
     x >>= y;
}