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
/**

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* @param <E> type of elements
3030
* @see <a href="https://en.wikipedia.org/wiki/Skip_list">Wiki. Skip list</a>
3131
*/
32+
@SuppressWarnings("rawtypes")
3233
public class SkipList<E extends Comparable<E>> {
3334

3435
/**

src/main/java/com/thealgorithms/dynamicprogramming/LongestArithmeticSubsequence.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.HashMap;
44

5+
@SuppressWarnings("rawtypes")
56
final class LongestArithmeticSubsequence {
67
private LongestArithmeticSubsequence() {
78
}

src/main/java/com/thealgorithms/misc/PalindromeSinglyLinkedList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* See more:
1111
* https://www.geeksforgeeks.org/function-to-check-if-a-singly-linked-list-is-palindrome/
1212
*/
13+
@SuppressWarnings("rawtypes")
1314
public final class PalindromeSinglyLinkedList {
1415
private PalindromeSinglyLinkedList() {
1516
}

src/main/java/com/thealgorithms/searches/FibonacciSearch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Note: This algorithm requires that the input array be sorted.
1616
* </p>
1717
*/
18+
@SuppressWarnings("rawtypes")
1819
public class FibonacciSearch implements SearchAlgorithm {
1920

2021
/**

src/main/java/com/thealgorithms/sorts/MergeSort.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
* @see SortAlgorithm
99
*/
10+
@SuppressWarnings("rawtypes")
1011
class MergeSort implements SortAlgorithm {
1112

1213
private Comparable[] aux;

src/main/java/com/thealgorithms/sorts/SortAlgorithm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*
99
* @author Podshivalov Nikita (https://github.com/nikitap492)
1010
*/
11+
@SuppressWarnings("rawtypes")
1112
public interface SortAlgorithm {
1213
/**
1314
* Main method arrays sorting algorithms

src/main/java/com/thealgorithms/sorts/SpreadSort.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* It distributes elements into buckets and recursively sorts these buckets.
77
* This implementation is generic and can sort any array of elements that extend Comparable.
88
*/
9+
@SuppressWarnings("rawtypes")
910
public class SpreadSort implements SortAlgorithm {
1011
private static final int MAX_INSERTION_SORT_THRESHOLD = 1000;
1112
private static final int MAX_INITIAL_BUCKET_CAPACITY = 1000;

src/main/java/com/thealgorithms/sorts/TimSort.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* <p>
88
* For more details @see <a href="https://en.wikipedia.org/wiki/Timsort">TimSort Algorithm</a>
99
*/
10+
@SuppressWarnings("rawtypes")
1011
class TimSort implements SortAlgorithm {
1112
private static final int SUB_ARRAY_SIZE = 32;
1213
private Comparable[] aux;

src/test/java/com/thealgorithms/datastructures/graphs/KruskalTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.junit.jupiter.api.BeforeEach;
1111
import org.junit.jupiter.api.Test;
1212

13+
@SuppressWarnings("rawtypes")
1314
public class KruskalTest {
1415

1516
private Kruskal kruskal;

src/test/java/com/thealgorithms/maths/NumberOfDigitsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.junit.jupiter.params.provider.Arguments;
99
import org.junit.jupiter.params.provider.MethodSource;
1010

11+
@SuppressWarnings("rawtypes")
1112
public class NumberOfDigitsTest {
1213

1314
@ParameterizedTest

0 commit comments

Comments
 (0)