...
It is important to ensure that the argument to method one()
is obtained from a volatile
variable or as a result of explicitly passing an explicit integer value. Otherwise, the variable that is being read may itself be susceptible to the described vulnerability.
...