You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2019/08/29 02:31:45 UTC

[incubator-datasketches-java] branch master updated: suppress false positive LGTM alert.

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-java.git


The following commit(s) were added to refs/heads/master by this push:
     new 325cc1d  suppress false positive LGTM alert.
325cc1d is described below

commit 325cc1d29a3ee60f2c2c8d278eed72dc658656a6
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Wed Aug 28 19:31:36 2019 -0700

    suppress false positive LGTM alert.
---
 src/main/java/org/apache/datasketches/theta/PairwiseSetOperations.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/datasketches/theta/PairwiseSetOperations.java b/src/main/java/org/apache/datasketches/theta/PairwiseSetOperations.java
index 9967e1b..c34a560 100644
--- a/src/main/java/org/apache/datasketches/theta/PairwiseSetOperations.java
+++ b/src/main/java/org/apache/datasketches/theta/PairwiseSetOperations.java
@@ -71,7 +71,7 @@ public class PairwiseSetOperations {
       return EmptyCompactSketch.getInstance();
     }
     final short seedHash = ((skA == null) || (skA instanceof EmptyCompactSketch))
-        ? skB.getSeedHash() : skA.getSeedHash();
+        ? skB.getSeedHash() : skA.getSeedHash(); // lgtm [java/dereferenced-value-may-be-null]
     final HeapAnotB anotb = new HeapAnotB(seedHash);
     return anotb.aNotB(skA, skB, true, null); //handles null arguments just fine.
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org