Address merge request review comments (use autoboxing instead of explicit valueOf).

4 jobs for remove-use-of-new-integer in 10 minutes and 34 seconds (queued for 16 minutes and 11 seconds)