Menu

#183 rule: unnecessary integer comparison

open
nobody
None
5
2013-02-16
2011-01-24
No

INT: Vacuous comparison of integer value (INT_VACUOUS_COMPARISON)

There is an integer comparison that always returns the same value (e.g., x <= Integer.MAX_VALUE).

This could be done for all reference types.

Discussion


Log in to post a comment.