return known value

After some refactoring I ended up with this code:It surprised me that IDEA didn't suggest to replace "return val"
with "return null".

I searched JIRA for an item but didn't manage to find one. Is it already
there or should I add it?


1 comment
Comment actions Permalink

Could have sworn I asked for an inspection for any use of a known null value. Such uses are almost certainly errors, after all, and the dataflow engine already has code to determine nullity. Please do submit a JIRA request.

--Dave Griffith


Please sign in to leave a comment.