Enable PMD rule UnnecessaryImport and fix violations

This commit is contained in:
Manuel Fuhr 2022-11-13 12:21:56 +01:00
parent 9d0703f898
commit c75a8cb703
19 changed files with 15 additions and 58 deletions

View file

@ -1,7 +1,5 @@
package btools.util;
import java.util.Random;
/**
* Memory efficient and lightning fast heap to get the lowest-key value of a set of key-object pairs
*

View file

@ -1,8 +1,5 @@
package btools.util;
import java.util.Random;
import java.util.HashSet;
import org.junit.Assert;
import org.junit.Test;

View file

@ -1,11 +1,7 @@
package btools.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
public class CheapAngleMeterTest {

View file

@ -1,11 +1,10 @@
package btools.util;
import java.util.Random;
import java.io.*;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
public class ReducedMedianFilterTest {
@Test
public void reducedMedianFilterTest() throws IOException {

View file

@ -1,12 +1,10 @@
package btools.util;
import java.util.Random;
import java.util.HashMap;
import java.util.HashSet;
import org.junit.Assert;
import org.junit.Test;
import java.util.Random;
public class SortedHeapTest {
@Test
public void sortedHeapTest1() {