File tree 4 files changed +6
-7
lines changed
build-logic/src/main/kotlin/com/ibm/wala/gradle
util/src/main/java/com/ibm/wala/util
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ tasks.withType<JavaCompile>().configureEach {
18
18
error(" NullAway" )
19
19
errorproneArgs.addAll(
20
20
" -XepOpt:NullAway:AnnotatedPackages=com.ibm.wala" ,
21
+ " -XepOpt:NullAway:JSpecifyMode=true" ,
21
22
)
22
23
}
23
24
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
36
36
junit-jupiter-params = { module = " org.junit.jupiter:junit-jupiter-params" }
37
37
junit-platform-launcher = { module = " org.junit.platform:junit-platform-launcher" }
38
38
junit-vintage-engine = { module = " org.junit.vintage:junit-vintage-engine" }
39
- nullaway = " com.uber.nullaway:nullaway:0.10.23 "
39
+ nullaway = " com.uber.nullaway:nullaway:0.10.24 "
40
40
rhino = " org.mozilla:rhino:1.7.14"
41
41
slf4j-api = " org.slf4j:slf4j-api:2.0.7"
42
42
w3c-css-sac = " org.eclipse.birt.runtime:org.w3c.css.sac:1.3.1.v200903091627"
Original file line number Diff line number Diff line change @@ -226,8 +226,7 @@ public void removeNode(E n) {
226
226
227
227
private final Map <E , Collection <E >> preds = new HashMap <>();
228
228
229
- private Set <E > getConnected (
230
- @ Nullable E inst , Function <E , Iterator <? extends E >> fconnected ) {
229
+ private Set <E > getConnected (E inst , Function <E , Iterator <? extends E >> fconnected ) {
231
230
Set <E > result = new LinkedHashSet <>();
232
231
Set <E > seenInsts = new HashSet <>();
233
232
Set <E > newInsts = Iterator2Collection .toSet (fconnected .apply (inst ));
@@ -253,11 +252,11 @@ private Set<E> getConnected(
253
252
return result ;
254
253
}
255
254
256
- private void setPredNodes (@ Nullable E N ) {
255
+ private void setPredNodes (E N ) {
257
256
preds .put (N , getConnected (N , G ::getPredNodes ));
258
257
}
259
258
260
- private void setSuccNodes (@ Nullable E N ) {
259
+ private void setSuccNodes (E N ) {
261
260
succs .put (N , getConnected (N , G ::getSuccNodes ));
262
261
}
263
262
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ public static void main(String[] args) {
45
45
try {
46
46
return new JarFile (object );
47
47
} catch (IOException e ) {
48
- assert false : e .toString ();
49
- return null ;
48
+ throw new RuntimeException (e );
50
49
}
51
50
}));
52
51
You can’t perform that action at this time.
0 commit comments