From f64bc3c65d4c7b6465a7ff0d1623e7437a44da55 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Wed, 1 May 2024 13:11:03 +0200 Subject: [PATCH] style: include `UC_USELESS_OBJECT` (#5127) --- spotbugs-exclude.xml | 3 --- .../java/com/thealgorithms/sorts/MergeSortRecursive.java | 9 --------- 2 files changed, 12 deletions(-) diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml index dd9d267b..799a72fa 100644 --- a/spotbugs-exclude.xml +++ b/spotbugs-exclude.xml @@ -17,9 +17,6 @@ - - - diff --git a/src/main/java/com/thealgorithms/sorts/MergeSortRecursive.java b/src/main/java/com/thealgorithms/sorts/MergeSortRecursive.java index f9d12a2a..f67ba631 100644 --- a/src/main/java/com/thealgorithms/sorts/MergeSortRecursive.java +++ b/src/main/java/com/thealgorithms/sorts/MergeSortRecursive.java @@ -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(); - } -}