|
|
|
same goes for Commons Lang "Validate" class, I'd really welcome that RFE
Yup, that's what I have in mind. I am not sure how it's best implemented. You'll definitely need something more flexible than @PerformsNullCheck: You need to specify which of possible multiple parameters is checked for no-nullness.
Also in my example above (from the last project I worked on) there's no dedicated not-null check, but just a simple test method that assert that the first parameter is true. I would put this much lower on my priority list if this weren't so weird: Somehow I technically understand this, but it really makes the constant conditions inspection useless if the project frequently uses custom assert statements. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Such an annotation would indeed be nice.
An extra bonus would be: IDEA could index/remember such methods present in module classpath, and automatically provide QuickFixes based on that data.