Commit 50cb4ab
authored
Fixes #1139. There are real scenarios where projects may not want to
ship with a JSpecify dependence; see
#1139 (comment).
So, we remove any cases where we were specifically checking for or using
JSpecify's `@Nullable` annotation.
Most of the code changes are due to the fact that now, we check if an
annotation is a `@Nullable` annotation using
`Nullness.hasNullableAnnotation`, which requires a `Config` object as a
parameter. So we need to thread a `Config` object as a parameter through
a bunch of methods.
1 parent f064222 commit 50cb4ab
File tree
4 files changed
+116
-87
lines changed- nullaway/src
- main/java/com/uber/nullaway/generics
- test/java/com/uber/nullaway/jspecify
4 files changed
+116
-87
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
64 | | - | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | | - | |
95 | | - | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
0 commit comments