Query module BadAbsOfRandom

name
Incorrect absolute value of random number
description
Calling ‘Math.abs’ to find the absolute value of a randomly generated integer is not guaranteed to return a non-negative integer.
kind
problem
problem.severity
warning
precision
medium
id
java/abs-of-random
tags
reliability maintainability

Imports

java

Provides all default Java QL imports.