Avoid use of Math.abs #8

azell opened this Issue Oct 26, 2011 · 0 comments

1 participant


If the intention is to unset the sign bit, it is safer to mask against Long.MAX_VALUE. See also http://findbugs.blogspot.com/2006/09/is-mathabs-broken.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment