diff --git a/java/checkstyle-suppressions.xml b/java/checkstyle-suppressions.xml index 16047f69cda..6b9f0676351 100644 --- a/java/checkstyle-suppressions.xml +++ b/java/checkstyle-suppressions.xml @@ -42,7 +42,6 @@ - diff --git a/java/core/src/test/org/apache/orc/TestMinSeekSize.java b/java/core/src/test/org/apache/orc/TestMinSeekSize.java index f4814f35644..d53cc2f4683 100644 --- a/java/core/src/test/org/apache/orc/TestMinSeekSize.java +++ b/java/core/src/test/org/apache/orc/TestMinSeekSize.java @@ -38,7 +38,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; public class TestMinSeekSize { diff --git a/java/core/src/test/org/apache/orc/TestOrcFilterContext.java b/java/core/src/test/org/apache/orc/TestOrcFilterContext.java index 3e1cb763211..265956890d9 100644 --- a/java/core/src/test/org/apache/orc/TestOrcFilterContext.java +++ b/java/core/src/test/org/apache/orc/TestOrcFilterContext.java @@ -41,7 +41,6 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Random; -import java.util.Arrays; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilterService.java b/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilterService.java index b1824f2071f..923910ded1b 100644 --- a/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilterService.java +++ b/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilterService.java @@ -22,7 +22,6 @@ import org.apache.orc.filter.BatchFilter; import org.junit.jupiter.api.Test; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; diff --git a/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilters.java b/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilters.java index bc5535fe974..85ec869dbad 100644 --- a/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilters.java +++ b/java/core/src/test/org/apache/orc/impl/filter/TestPluginFilters.java @@ -24,19 +24,12 @@ import org.apache.hadoop.hive.ql.io.sarg.SearchArgumentFactory; import org.apache.orc.OrcConf; import org.apache.orc.OrcFile; -import org.apache.orc.OrcFilterContext; import org.apache.orc.Reader; -import org.apache.orc.TypeDescription; import org.apache.orc.filter.BatchFilter; import org.junit.jupiter.api.Test; -import java.util.Arrays; -import java.util.function.Consumer; - import static org.junit.jupiter.api.Assertions.assertArrayEquals; -import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; public class TestPluginFilters extends ATestFilter { diff --git a/java/mapreduce/src/test/org/apache/orc/mapred/TestOrcOutputFormat.java b/java/mapreduce/src/test/org/apache/orc/mapred/TestOrcOutputFormat.java index a95d73a3f5c..721560b562c 100644 --- a/java/mapreduce/src/test/org/apache/orc/mapred/TestOrcOutputFormat.java +++ b/java/mapreduce/src/test/org/apache/orc/mapred/TestOrcOutputFormat.java @@ -42,13 +42,11 @@ import org.apache.hadoop.mapred.RecordWriter; import org.apache.hadoop.mapred.Reporter; import org.apache.hadoop.mapred.TaskAttemptContext; -import org.apache.hadoop.util.Progressable; import org.apache.orc.CompressionKind; import org.apache.orc.OrcConf; import org.apache.orc.OrcFile; import org.apache.orc.Reader; import org.apache.orc.TypeDescription; -import org.apache.orc.Writer; import org.junit.jupiter.api.Test; import java.io.File; diff --git a/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMapreduceOrcOutputFormat.java b/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMapreduceOrcOutputFormat.java index d8c7d6fb71c..82e4a8944b6 100644 --- a/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMapreduceOrcOutputFormat.java +++ b/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMapreduceOrcOutputFormat.java @@ -18,7 +18,6 @@ package org.apache.orc.mapreduce; -import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.ql.io.sarg.PredicateLeaf; @@ -40,7 +39,6 @@ import org.apache.orc.OrcFile; import org.apache.orc.Reader; import org.apache.orc.TypeDescription; -import org.apache.orc.Writer; import org.apache.orc.mapred.OrcKey; import org.apache.orc.mapred.OrcStruct; import org.apache.orc.mapred.OrcValue; diff --git a/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMrUnit.java b/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMrUnit.java index e47b22d046c..aaef09559f7 100644 --- a/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMrUnit.java +++ b/java/mapreduce/src/test/org/apache/orc/mapreduce/TestMrUnit.java @@ -21,7 +21,6 @@ import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch; import org.apache.hadoop.io.DataInputBuffer; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.NullWritable; diff --git a/java/tools/src/test/org/apache/orc/tools/TestJsonFileDump.java b/java/tools/src/test/org/apache/orc/tools/TestJsonFileDump.java index f226ae115f6..609129e905d 100644 --- a/java/tools/src/test/org/apache/orc/tools/TestJsonFileDump.java +++ b/java/tools/src/test/org/apache/orc/tools/TestJsonFileDump.java @@ -32,19 +32,12 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.PrintStream; import java.net.URL; import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Paths; import java.util.Random; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNull; - public class TestJsonFileDump { public static String getFileFromClasspath(String name) {