Menu

#1351 No warnings when passing some @CheckForNull variables to @NonNull parameters

3.x
closed-rejected
5
2015-02-02
2015-01-23
Brian Worth
No

If a method has two (or more, presumably) @CheckForNull parameters, only checks one for null, then passes both values to @Nonnull method parameters, no bug is reported. See attached.

1 Attachments

Related

Bugs: #1423

Discussion

  • William Pugh

    William Pugh - 2015-02-02
    • status: open --> closed-rejected
    • assigned_to: William Pugh
     
  • William Pugh

    William Pugh - 2015-02-02

    These results are as intended. The FindBugs null pointer analysis is designed to produce minimum false positives without requiring super sophisticated analysis.

    In this case, the analysis assumes that the fullness of the parameters might be coupled, and thus doesn't report a null dereference warning here.

     

Log in to post a comment.

MongoDB Logo MongoDB