any reason why EqualsAvoidNull not implemented for enums? #14789
Replies: 1 comment 1 reply
-
It actually works only on strings the check can identify. If there is doubts if some variable/method is a string, it is ignored. I remember some conversations about this during a big change it was going through. Also, Checkstyle is not currently a multi-file utility. It only knows what is in the current class it is looking at. It would be very hard to identify something as an enum and would be restricted to very limited cases. For example, we couldn't ensure all cap static fields are Finally, I am of the belief you should not use |
Beta Was this translation helpful? Give feedback.
-
it works great on strings, and could be very beneficial...
Beta Was this translation helpful? Give feedback.
All reactions