Skip to content

Commit f64bc3c

Browse files
authored
style: include UC_USELESS_OBJECT (#5127)
1 parent 06a284f commit f64bc3c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

spotbugs-exclude.xml

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
<Match>
1818
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
1919
</Match>
20-
<Match>
21-
<Bug pattern="UC_USELESS_OBJECT" />
22-
</Match>
2320
<Match>
2421
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
2522
</Match>

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

-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.thealgorithms.sorts;
22

33
import java.util.ArrayList;
4-
import java.util.Arrays;
54
import java.util.List;
65

76
public class MergeSortRecursive {
@@ -59,11 +58,3 @@ private static List<Integer> sort(List<Integer> unsortedA, List<Integer> unsorte
5958
}
6059
}
6160
}
62-
63-
class App {
64-
65-
public static void main(String[] args) {
66-
MergeSortRecursive sort = new MergeSortRecursive(new ArrayList<>(Arrays.asList(4, 3, 1, 8, 5, 10, 0, 1, 4, 11, 8, 9)));
67-
sort.mergeSort();
68-
}
69-
}

0 commit comments

Comments
 (0)