diff options
author | Manu Sridharan <msridhar@gmail.com> | 2023-10-08 11:09:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 14:09:05 -0400 |
commit | 424cf63d572158d535bd891aa00ab33b640836bc (patch) | |
tree | b805ae4cece446e545174970dccce5b3ef4d4ab9 | |
parent | 790a9ec1549e6b616ab1529bdf6d0f360f92b718 (diff) | |
download | nullaway-424cf63d572158d535bd891aa00ab33b640836bc.tar.gz |
Ignore another method for code coverage (#844)
Another fix related to #828 (see also #838)
-rw-r--r-- | nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java index ba440cf..d4fa677 100644 --- a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java +++ b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java @@ -618,7 +618,14 @@ public final class AccessPath implements MapKey { return Long.hashCode(this.key); } + /** + * We ignore this method for code coverage since there is non-determinism somewhere deep in a + * Map implementation such that, depending on how AccessPaths get bucketed in the Map (which + * depends on non-deterministic hash codes), sometimes this method is called and sometimes it is + * not. + */ @Override + @JacocoIgnoreGenerated public boolean equals(Object obj) { if (obj instanceof NumericMapKey) { return this.key == ((NumericMapKey) obj).key; |