Fixed issue reported by sonar: Method invokes inefficient Number constructor; use static valueOf instead.