Benefits of using NumberUtils.INTEGER_ONE and other such utilities

Viewed 1281

In java for a comparison in an if statement, I wrote

if (x == 1)

and got a comment in code review to use NumberUtils.INTEGER_ONE instead of 1. I was wondering what benefit does it actually add to the code.

1 Answers
Related