This inspection reports any checks for oddness of the form
x % 2 == 1
. Such checks will fail for negative odd values, which is probably not the behaviour intended. Consider using
x % 2 != 0
or
x & 1 == 1
instead.
Powered by InspectionGadgets