Repository navigation
Commit 955f679
committed
Run NullAway in JSpecify mode
Outside it NullAway takes Guava's @ParametricNullness for @nullable:
PeekingIterator.peek() and next(), Iterables.getLast and
getOnlyElement, Iterators.getLast. Every token taken from a
PeekingIterator<Token> was reported as possibly null. JSpecify mode
reads Guava's type parameters instead, and of NullAway's 102 findings
60 remain.
On javac 21 the mode needs -XDaddTypeAnnotationsToSymbol=true to see
type-use annotations, @nullable among them, on classes read from jars.1 parent 0c5bc4a commit 955f679
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments