Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Mar 3, 2024
1 parent 7b7fb64 commit a83d7b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ tasks.withType<JavaCompile>().configureEach {
if (!name.contains("test", true)) {
error("NullAway")
errorproneArgs.addAll(
"-XepOpt:NullAway:AnnotatedPackages=com.ibm.wala",
"-XepOpt:NullAway:JSpecifyMode=true",
"-XepOpt:NullAway:AnnotatedPackages=com.ibm.wala",
"-XepOpt:NullAway:JSpecifyMode=true",
)
}
}
Expand Down
7 changes: 3 additions & 4 deletions util/src/main/java/com/ibm/wala/util/graph/GraphSlicer.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ public void removeNode(E n) {

private final Map<E, Collection<E>> preds = new HashMap<>();

private Set<E> getConnected(
@Nullable E inst, Function<E, Iterator<? extends E>> fconnected) {
private Set<E> getConnected(E inst, Function<E, Iterator<? extends E>> fconnected) {
Set<E> result = new LinkedHashSet<>();
Set<E> seenInsts = new HashSet<>();
Set<E> newInsts = Iterator2Collection.toSet(fconnected.apply(inst));
Expand All @@ -253,11 +252,11 @@ private Set<E> getConnected(
return result;
}

private void setPredNodes(@Nullable E N) {
private void setPredNodes(E N) {
preds.put(N, getConnected(N, G::getPredNodes));
}

private void setSuccNodes(@Nullable E N) {
private void setSuccNodes(E N) {
succs.put(N, getConnected(N, G::getSuccNodes));
}

Expand Down
3 changes: 1 addition & 2 deletions util/src/main/java/com/ibm/wala/util/io/RtJar.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public static void main(String[] args) {
try {
return new JarFile(object);
} catch (IOException e) {
assert false : e.toString();
return null;
throw new RuntimeException(e);
}
}));

Expand Down

0 comments on commit a83d7b5

Please sign in to comment.