mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 21:43:15 +08:00
style: include UC_USELESS_OBJECT
(#5127)
This commit is contained in:
@ -17,9 +17,6 @@
|
||||
<Match>
|
||||
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="UC_USELESS_OBJECT" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
|
||||
</Match>
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.thealgorithms.sorts;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class MergeSortRecursive {
|
||||
@ -59,11 +58,3 @@ public class MergeSortRecursive {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
MergeSortRecursive sort = new MergeSortRecursive(new ArrayList<>(Arrays.asList(4, 3, 1, 8, 5, 10, 0, 1, 4, 11, 8, 9)));
|
||||
sort.mergeSort();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user