-
Notifications
You must be signed in to change notification settings - Fork 44
Whether an exception parameter is nullness-applicable and why #347
Copy link
Copy link
Closed
Labels
designAn issue that is resolved by making a decision, about whether and how something should work.An issue that is resolved by making a decision, about whether and how something should work.discussionSomething that did or will resolve itself without any actual change neededSomething that did or will resolve itself without any actual change needednullnessFor issues specific to nullness analysis.For issues specific to nullness analysis.
Milestone
Metadata
Metadata
Assignees
Labels
designAn issue that is resolved by making a decision, about whether and how something should work.An issue that is resolved by making a decision, about whether and how something should work.discussionSomething that did or will resolve itself without any actual change neededSomething that did or will resolve itself without any actual change needednullnessFor issues specific to nullness analysis.For issues specific to nullness analysis.
Type
Fields
Give feedbackNo fields configured for issues without a type.
(earlier)
Suppose we're trying to null-mark this existing code without changing it:
The answer might be one of:
e's type here is nullness-applicable@Nullable SomeExceptionmakes it go awaye's type here is nullness-inapplicable for reason of being intrinsically non-nulle's type here is nullness-inapplicable for reason of being (morally) a local variable root typeNotice that the difference between 2 and 3 is just whether we think of
emore like a parameter or more like a variable.I'm not sure that this 1-5 choice even affects which issues a flow-sensitive analyzer could find and report. If so, is there any big reason to have a finding at the site of the assignment anyway?