Skip to content

Commit ec6f09c

Browse files
authored
chore: suppress rawtypes in selected classes (TheAlgorithms#6261)
1 parent 27a7740 commit ec6f09c

File tree

20 files changed

+19
-1
lines changed

20 files changed

+19
-1
lines changed

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
<compilerArgs>
7777
<arg>-Xlint:all</arg>
7878
<arg>-Xlint:-auxiliaryclass</arg>
79-
<arg>-Xlint:-rawtypes</arg>
8079
<arg>-Xlint:-unchecked</arg>
8180
<arg>-Werror</arg>
8281
</compilerArgs>

src/main/java/com/thealgorithms/backtracking/AllPathsFromSourceToTarget.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @author <a href="https://github.com/siddhant2002">Siddhant Swarup Mallick</a>
1111
*/
12+
@SuppressWarnings("rawtypes")
1213
public class AllPathsFromSourceToTarget {
1314

1415
// No. of vertices in graph

src/main/java/com/thealgorithms/datastructures/bloomfilter/BloomFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*
1313
* @param <T> The type of elements to be stored in the Bloom filter.
1414
*/
15+
@SuppressWarnings("rawtypes")
1516
public class BloomFilter<T> {
1617

1718
private final int numberOfHashFunctions;

src/main/java/com/thealgorithms/datastructures/graphs/Kruskal.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*
2020
* <p><strong>Time Complexity:</strong> O(E log V), where E is the number of edges and V is the number of vertices.</p>
2121
*/
22+
@SuppressWarnings("rawtypes")
2223
public class Kruskal {
2324

2425
/**

src/main/java/com/thealgorithms/datastructures/graphs/WelshPowell.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* For more information, see <a href="https://en.wikipedia.org/wiki/Graph_coloring">Graph Coloring</a>.
2323
* </p>
2424
*/
25+
@SuppressWarnings("rawtypes")
2526
public final class WelshPowell {
2627
private static final int BLANK_COLOR = -1; // Constant representing an uncolored state
2728

src/main/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArray.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @param <K> the type of keys maintained by this hash map
2424
* @param <V> the type of mapped values
2525
*/
26+
@SuppressWarnings("rawtypes")
2627
public class GenericHashMapUsingArray<K, V> {
2728

2829
private int size; // Total number of key-value pairs

src/main/java/com/thealgorithms/datastructures/hashmap/hashing/HashMap.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @param <K> the type of keys maintained by this map
99
* @param <V> the type of mapped values
1010
*/
11+
@SuppressWarnings("rawtypes")
1112
public class HashMap<K, V> {
1213
private final int hashSize;
1314
private final LinkedList<K, V>[] buckets;

src/main/java/com/thealgorithms/datastructures/hashmap/hashing/LinearProbingHashMap.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @param <Key> the type of keys maintained by this map
3535
* @param <Value> the type of mapped values
3636
*/
37+
@SuppressWarnings("rawtypes")
3738
public class LinearProbingHashMap<Key extends Comparable<Key>, Value> extends Map<Key, Value> {
3839
private int hsize; // size of the hash table
3940
private Key[] keys; // array to store keys

src/main/java/com/thealgorithms/datastructures/lists/CircleLinkedList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
* @param <E> the type of elements held in this list
1212
*/
13+
@SuppressWarnings("rawtypes")
1314
public class CircleLinkedList<E> {
1415

1516
/**

src/main/java/com/thealgorithms/datastructures/lists/CursorLinkedList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
* @param <T> the type of elements in this list
1212
*/
13+
@SuppressWarnings("rawtypes")
1314
public class CursorLinkedList<T> {
1415

1516
/**

0 commit comments

Comments
 (0)