style: include UC_USELESS_OBJECT (#5127)

This commit is contained in:
Piotr Idzik 2024-05-01 13:11:03 +02:00 committed by GitHub
parent 06a284f811
commit f64bc3c65d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View File

@ -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>

View File

@ -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();
}
}