Skip to content

Commit

Permalink
Add dismiss warnings for codeql.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Jun 11, 2024
1 parent 156bc30 commit 651c131
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ void shouldHandleCollisionAndThenLinearProbe()
final int initialCapacity = 32;
final Object2IntHashMap<Integer> map = newMap(loadFactor, initialCapacity);
final int value = 7;
final Integer key = 7; //codeql[java/non-null-boxed-variable]
//codeql[java/non-null-boxed-variable]
final Integer key = 7;

map.put(key, value);

Expand Down Expand Up @@ -515,7 +516,8 @@ void shouldRemoveEntryAndCompactCollisionChain()
final Object2IntHashMap<Integer> objectToIntMap = new Object2IntHashMap<>(32, loadFactor, MISSING_VALUE);

final int value = 12;
final Integer key = 12; //codeql[java/non-null-boxed-variable]
//codeql[java/non-null-boxed-variable]
final Integer key = 12;

objectToIntMap.put(key, value);
objectToIntMap.put(Integer.valueOf(13), 13);
Expand Down

0 comments on commit 651c131

Please sign in to comment.