Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#563 New Check: Warning on return null instead of Boolean

Future
closed
nobody
None
5
2013-11-17
2011-02-22
Anonymous
No

This check is already present in FindBugs:
http://findbugs.sourceforge.net/bugDescriptions.html#NP_BOOLEAN_RETURN_NULL

Arguably it is the matter of style to use Boolean for ternary logic or enum. And since all the information is in the single file and even in the single method, I think that checkstyle is capable of doing this.

Discussion

  • Ivan Sopov
    Ivan Sopov
    2013-11-17

    Implemented in sevntu.checkstyle project.

     
  • Ivan Sopov
    Ivan Sopov
    2013-11-17

    • status: open --> closed
    • Group: --> Future