Manageability
Severity
High
Lightning
SF-0059
The second parameter to the parseInt function specifies the base for the conversion operation. This parameter is optional and usually defaults to 10 (base/radix is 10 for a decimal number). But different implementations may behave differently, causing unwanted results. It also improves readability, if the base is given.
Always specify the second parameter to the parseInt function.
45 min
See the PMD documentation article: UseBaseWithParseInt.