chore: suppress rawtypes in selected classes (#6261)

This commit is contained in:
Piotr Idzik
2025-06-05 13:23:28 +02:00
committed by GitHub
parent 27a774020c
commit ec6f09c373
20 changed files with 19 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import java.util.LinkedList;
* @param <K> the type of keys maintained by this hash map
* @param <V> the type of mapped values
*/
@SuppressWarnings("rawtypes")
public class GenericHashMapUsingArray<K, V> {
private int size; // Total number of key-value pairs

View File

@@ -8,6 +8,7 @@ package com.thealgorithms.datastructures.hashmap.hashing;
* @param <K> the type of keys maintained by this map
* @param <V> the type of mapped values
*/
@SuppressWarnings("rawtypes")
public class HashMap<K, V> {
private final int hashSize;
private final LinkedList<K, V>[] buckets;

View File

@@ -34,6 +34,7 @@ import java.util.ArrayList;
* @param <Key> the type of keys maintained by this map
* @param <Value> the type of mapped values
*/
@SuppressWarnings("rawtypes")
public class LinearProbingHashMap<Key extends Comparable<Key>, Value> extends Map<Key, Value> {
private int hsize; // size of the hash table
private Key[] keys; // array to store keys