Skip to content

Commit 5a27d8a

Browse files
committed
suppress infer warnings that are false positives
#131
1 parent 9a9f0b8 commit 5a27d8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/cicirello/sequences/distance/KendallTauSequenceDistance.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private Bucket[][] bucketSortElements(int[][] relabeling, int numLabels) {
332332
return buckets;
333333
}
334334

335-
@SuppressWarnings("NULL_DEREFERENCE")
335+
@SuppressWarnings("infer")
336336
private int relabelElementsWithHash(Object[] s1, Object[] s2, int[][] relabeling) {
337337
HashMap<Object,Integer> labelMap = new HashMap<Object,Integer>((int)(1.334 * relabeling.length)+2);
338338
int current = -1;
@@ -352,7 +352,7 @@ private int relabelElementsWithHash(Object[] s1, Object[] s2, int[][] relabeling
352352
return current+1;
353353
}
354354

355-
@SuppressWarnings("NULL_DEREFERENCE")
355+
@SuppressWarnings("infer")
356356
private <T> int relabelElementsWithHash(List<T> s1, List<T> s2, int[][] relabeling) {
357357
HashMap<T,Integer> labelMap = new HashMap<T,Integer>((int)(1.334 * relabeling.length)+2);
358358
int current = -1;

0 commit comments

Comments
 (0)