You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Link the generic nullability mismatch diagnostic to an explanation of its lines #2203
With #1828, a generic nullability mismatch prints source supertype:, numbered path: entries, note:, and possible fix: lines, and the diagnostic links http://t.uber.com/nullaway, the generic landing page. A user who meets these lines for the first time has no link that leads to an explanation of them.
Example and expected behavior
@NullMarkedclassTest {
Collection<Object> copy(List<?> list) {
List<Object> result = newArrayList<>();
result.addAll(list); // incompatible nullability in type argument for E of Collection -> upper bound of wildcard: ...returnresult;
}
}
The diagnostic carries a link, through Error Prone's Description.Builder.setLinkUrl, to the entry for incompatible nullability in … on the Error messages wiki page, and that entry describes each of those lines. JSpecify mode on.
Proposed solution
Publish the wiki entry first, then point the link of this diagnostic at its anchor.
Activity