diff --git a/src/com/amazon/ion/impl/IonReaderTreeUserX.java b/src/com/amazon/ion/impl/IonReaderTreeUserX.java index be70bc2d09..6977da27a6 100644 --- a/src/com/amazon/ion/impl/IonReaderTreeUserX.java +++ b/src/com/amazon/ion/impl/IonReaderTreeUserX.java @@ -21,7 +21,6 @@ import com.amazon.ion.IonCatalog; import com.amazon.ion.IonDatagram; -import com.amazon.ion.IonReader; import com.amazon.ion.IonStruct; import com.amazon.ion.IonSymbol; import com.amazon.ion.IonType; diff --git a/src/com/amazon/ion/impl/IonWriterUser.java b/src/com/amazon/ion/impl/IonWriterUser.java index 60270d510c..b620821fb3 100644 --- a/src/com/amazon/ion/impl/IonWriterUser.java +++ b/src/com/amazon/ion/impl/IonWriterUser.java @@ -16,7 +16,6 @@ package com.amazon.ion.impl; import static com.amazon.ion.SystemSymbols.ION_SYMBOL_TABLE; -import static com.amazon.ion.SystemSymbols.ION_SYMBOL_TABLE_SID; import com.amazon.ion.IonCatalog; import com.amazon.ion.IonException; diff --git a/src/com/amazon/ion/impl/LocalSymbolTable.java b/src/com/amazon/ion/impl/LocalSymbolTable.java index cc6ca89497..713d8998ae 100644 --- a/src/com/amazon/ion/impl/LocalSymbolTable.java +++ b/src/com/amazon/ion/impl/LocalSymbolTable.java @@ -38,7 +38,6 @@ import com.amazon.ion.util.IonTextUtils; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; import java.util.List; diff --git a/src/com/amazon/ion/impl/_Private_IonReaderBuilder.java b/src/com/amazon/ion/impl/_Private_IonReaderBuilder.java index 17834a0bc0..c7e56f8abd 100644 --- a/src/com/amazon/ion/impl/_Private_IonReaderBuilder.java +++ b/src/com/amazon/ion/impl/_Private_IonReaderBuilder.java @@ -16,7 +16,6 @@ import java.io.IOException; import java.io.InputStream; import java.io.Reader; -import java.io.SequenceInputStream; import java.util.zip.GZIPInputStream; import static com.amazon.ion.impl.LocalSymbolTable.DEFAULT_LST_FACTORY; diff --git a/src/com/amazon/ion/impl/bin/IonRawBinaryWriter.java b/src/com/amazon/ion/impl/bin/IonRawBinaryWriter.java index e5bda78333..93a6a7e764 100644 --- a/src/com/amazon/ion/impl/bin/IonRawBinaryWriter.java +++ b/src/com/amazon/ion/impl/bin/IonRawBinaryWriter.java @@ -54,9 +54,7 @@ import java.io.OutputStream; import java.math.BigDecimal; import java.math.BigInteger; -import java.util.ArrayList; import java.util.Iterator; -import java.util.List; import java.util.NoSuchElementException; /** diff --git a/src/com/amazon/ion/impl/lite/IonSequenceLite.java b/src/com/amazon/ion/impl/lite/IonSequenceLite.java index 33070838ab..5f58355a36 100644 --- a/src/com/amazon/ion/impl/lite/IonSequenceLite.java +++ b/src/com/amazon/ion/impl/lite/IonSequenceLite.java @@ -17,13 +17,11 @@ import com.amazon.ion.ContainedValueException; import com.amazon.ion.IonSequence; -import com.amazon.ion.IonType; import com.amazon.ion.IonValue; -import com.amazon.ion.IonWriter; import com.amazon.ion.ValueFactory; import com.amazon.ion.impl._Private_CurriedValueFactory; import com.amazon.ion.impl._Private_IonValue; -import java.io.IOException; + import java.lang.reflect.Array; import java.util.AbstractList; import java.util.ArrayList; diff --git a/src/com/amazon/ion/impl/lite/IonStructLite.java b/src/com/amazon/ion/impl/lite/IonStructLite.java index c6ea1fca9a..23344a7497 100644 --- a/src/com/amazon/ion/impl/lite/IonStructLite.java +++ b/src/com/amazon/ion/impl/lite/IonStructLite.java @@ -19,20 +19,17 @@ import com.amazon.ion.IonStruct; import com.amazon.ion.IonType; import com.amazon.ion.IonValue; -import com.amazon.ion.IonWriter; import com.amazon.ion.SymbolToken; import com.amazon.ion.ValueFactory; import com.amazon.ion.ValueVisitor; import com.amazon.ion.impl._Private_CurriedValueFactory; -import com.amazon.ion.util.Equivalence; import com.amazon.ion.UnknownSymbolException; -import java.io.IOException; + import java.io.PrintWriter; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; -import java.util.ListIterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; diff --git a/src/com/amazon/ion/util/JarInfo.java b/src/com/amazon/ion/util/JarInfo.java index d7e0f3abea..2e00b58162 100644 --- a/src/com/amazon/ion/util/JarInfo.java +++ b/src/com/amazon/ion/util/JarInfo.java @@ -17,13 +17,8 @@ import java.io.IOException; import java.io.InputStream; -import java.net.URL; -import java.util.ArrayList; -import java.util.Enumeration; -import java.util.List; import java.util.Properties; -import java.util.jar.Attributes; -import java.util.jar.Manifest; + import com.amazon.ion.IonException; import com.amazon.ion.Timestamp; diff --git a/test/com/amazon/ion/BinaryReaderSystemProcessingTest.java b/test/com/amazon/ion/BinaryReaderSystemProcessingTest.java index a332d0462b..c9798c5a57 100644 --- a/test/com/amazon/ion/BinaryReaderSystemProcessingTest.java +++ b/test/com/amazon/ion/BinaryReaderSystemProcessingTest.java @@ -20,7 +20,6 @@ import java.math.BigDecimal; import java.math.BigInteger; -import java.util.Date; import static com.amazon.ion.SystemSymbols.ION_1_0; import static com.amazon.ion.SystemSymbols.ION_1_0_SID; diff --git a/test/com/amazon/ion/BinaryTest.java b/test/com/amazon/ion/BinaryTest.java index 5cfe3d6995..4df0e6534f 100644 --- a/test/com/amazon/ion/BinaryTest.java +++ b/test/com/amazon/ion/BinaryTest.java @@ -17,9 +17,7 @@ import static com.amazon.ion.SystemSymbols.ION_SYMBOL_TABLE_SID; -import java.io.IOException; import java.util.Arrays; -import java.util.Iterator; import org.junit.Test; diff --git a/test/com/amazon/ion/BlobTest.java b/test/com/amazon/ion/BlobTest.java index f39fcc210b..035c9160aa 100644 --- a/test/com/amazon/ion/BlobTest.java +++ b/test/com/amazon/ion/BlobTest.java @@ -16,7 +16,7 @@ package com.amazon.ion; import static com.amazon.ion.TestUtils.US_ASCII_CHARSET; -import static com.amazon.ion.impl._Private_Utils.encode; + import com.amazon.ion.impl._Private_Utils; import java.io.IOException; import java.io.InputStream; diff --git a/test/com/amazon/ion/IonTestCase.java b/test/com/amazon/ion/IonTestCase.java index 7158341d59..9b3d915092 100644 --- a/test/com/amazon/ion/IonTestCase.java +++ b/test/com/amazon/ion/IonTestCase.java @@ -26,7 +26,6 @@ import com.amazon.ion.system.IonSystemBuilder; import com.amazon.ion.system.SimpleCatalog; import java.io.File; -import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; diff --git a/test/com/amazon/ion/IonValueTest.java b/test/com/amazon/ion/IonValueTest.java index 38fdb7f0fe..0cac74c1cd 100644 --- a/test/com/amazon/ion/IonValueTest.java +++ b/test/com/amazon/ion/IonValueTest.java @@ -28,8 +28,6 @@ import org.junit.Test; import java.io.ByteArrayOutputStream; -import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; diff --git a/test/com/amazon/ion/StructTest.java b/test/com/amazon/ion/StructTest.java index 6fa84f7773..15cd31fb54 100644 --- a/test/com/amazon/ion/StructTest.java +++ b/test/com/amazon/ion/StructTest.java @@ -28,7 +28,6 @@ import java.util.ListIterator; import java.util.Random; -import com.amazon.ion.system.IonSystemBuilder; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; diff --git a/test/com/amazon/ion/impl/BinaryWriterTest.java b/test/com/amazon/ion/impl/BinaryWriterTest.java index cf4b910bf1..d5ecdc034a 100644 --- a/test/com/amazon/ion/impl/BinaryWriterTest.java +++ b/test/com/amazon/ion/impl/BinaryWriterTest.java @@ -15,7 +15,6 @@ package com.amazon.ion.impl; -import com.amazon.ion.IonCatalog; import com.amazon.ion.IonException; import com.amazon.ion.IonReader; import com.amazon.ion.IonType; diff --git a/test/com/amazon/ion/impl/IonReaderBinaryRawStringTest.java b/test/com/amazon/ion/impl/IonReaderBinaryRawStringTest.java index 3ad6e86938..30ba4cfe8e 100644 --- a/test/com/amazon/ion/impl/IonReaderBinaryRawStringTest.java +++ b/test/com/amazon/ion/impl/IonReaderBinaryRawStringTest.java @@ -1,21 +1,13 @@ package com.amazon.ion.impl; import com.amazon.ion.IonReader; -import com.amazon.ion.IonType; import com.amazon.ion.IonWriter; -import com.amazon.ion.Timestamp; import com.amazon.ion.system.IonBinaryWriterBuilder; import com.amazon.ion.system.IonReaderBuilder; -import com.amazon.ion.util.RepeatInputStream; import org.junit.Test; -import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; -import java.io.InputStream; -import java.io.SequenceInputStream; -import java.math.BigDecimal; -import static com.amazon.ion.impl._Private_IonConstants.BINARY_VERSION_MARKER_1_0; import static org.junit.Assert.assertEquals; public class IonReaderBinaryRawStringTest { diff --git a/test/com/amazon/ion/impl/IonReaderContinuableTopLevelBinaryTest.java b/test/com/amazon/ion/impl/IonReaderContinuableTopLevelBinaryTest.java index 695cd86d72..57a9d8c2ff 100644 --- a/test/com/amazon/ion/impl/IonReaderContinuableTopLevelBinaryTest.java +++ b/test/com/amazon/ion/impl/IonReaderContinuableTopLevelBinaryTest.java @@ -4,8 +4,6 @@ package com.amazon.ion.impl; import com.amazon.ion.BufferConfiguration; -import com.amazon.ion.Decimal; -import com.amazon.ion.IntegerSize; import com.amazon.ion.IonBufferConfiguration; import com.amazon.ion.IonDatagram; import com.amazon.ion.IonException; @@ -22,7 +20,6 @@ import com.amazon.ion.SymbolToken; import com.amazon.ion.SystemSymbols; import com.amazon.ion.TestUtils; -import com.amazon.ion.Timestamp; import com.amazon.ion.UnknownSymbolException; import com.amazon.ion.impl.bin._Private_IonManagedBinaryWriterBuilder; import com.amazon.ion.impl.bin._Private_IonManagedWriter; @@ -43,7 +40,6 @@ import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.math.BigInteger; import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.Collections; diff --git a/test/com/amazon/ion/impl/IonWriterTestCase.java b/test/com/amazon/ion/impl/IonWriterTestCase.java index fdfd52d15b..522b5e59c3 100644 --- a/test/com/amazon/ion/impl/IonWriterTestCase.java +++ b/test/com/amazon/ion/impl/IonWriterTestCase.java @@ -48,10 +48,8 @@ import com.amazon.ion.SystemSymbols; import com.amazon.ion.TestUtils; import com.amazon.ion.UnknownSymbolException; -import com.amazon.ion.impl.bin._Private_IonManagedWriter; import com.amazon.ion.junit.IonAssert; -import com.amazon.ion.system.IonSystemBuilder; -import java.io.ByteArrayInputStream; + import java.io.IOException; import java.math.BigDecimal; import java.math.BigInteger; diff --git a/test/com/amazon/ion/impl/_Private_ScalarConversionsTest.java b/test/com/amazon/ion/impl/_Private_ScalarConversionsTest.java index c607cbb891..93b9ab350c 100644 --- a/test/com/amazon/ion/impl/_Private_ScalarConversionsTest.java +++ b/test/com/amazon/ion/impl/_Private_ScalarConversionsTest.java @@ -17,10 +17,8 @@ import static org.junit.Assert.*; -import org.junit.Assert; import org.junit.Test; import com.amazon.ion.Decimal; -import static org.junit.Assert.*; public class _Private_ScalarConversionsTest { private long decimalToLong(final Decimal d) { diff --git a/test/com/amazon/ion/impl/lite/IonListSexpLiteSublistTest.java b/test/com/amazon/ion/impl/lite/IonListSexpLiteSublistTest.java index bd607af587..d6fd716404 100644 --- a/test/com/amazon/ion/impl/lite/IonListSexpLiteSublistTest.java +++ b/test/com/amazon/ion/impl/lite/IonListSexpLiteSublistTest.java @@ -19,13 +19,12 @@ import java.util.List; import java.util.ListIterator; -import org.junit.Assert; + import org.junit.Test; import org.junit.runner.RunWith; import com.amazon.ion.IonInt; import com.amazon.ion.IonSequence; import com.amazon.ion.IonValue; -import com.amazon.ion.impl.lite.BaseIonSequenceLiteSublistTestCase; import com.amazon.ion.junit.Injected; import com.amazon.ion.junit.Injected.Inject; diff --git a/test/com/amazon/ion/junit/IonAssert.java b/test/com/amazon/ion/junit/IonAssert.java index ca824ff8fa..a91f1f3d02 100644 --- a/test/com/amazon/ion/junit/IonAssert.java +++ b/test/com/amazon/ion/junit/IonAssert.java @@ -35,7 +35,6 @@ import java.util.Map.Entry; import static com.amazon.ion.SymbolTable.UNKNOWN_SYMBOL_ID; -import static com.amazon.ion.impl._Private_IonConstants.UNKNOWN_SYMBOL_TEXT_PREFIX; import static com.amazon.ion.util.IonTextUtils.printSymbol; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; diff --git a/test/com/amazon/ion/streaming/BadIonStreamingTest.java b/test/com/amazon/ion/streaming/BadIonStreamingTest.java index b847fd79e0..7e48f05de0 100644 --- a/test/com/amazon/ion/streaming/BadIonStreamingTest.java +++ b/test/com/amazon/ion/streaming/BadIonStreamingTest.java @@ -26,8 +26,7 @@ import com.amazon.ion.impl._Private_Utils; import com.amazon.ion.junit.Injected.Inject; import java.io.File; -import java.io.IOException; -import org.junit.Ignore; + import org.junit.Test; public class BadIonStreamingTest diff --git a/test/com/amazon/ion/streaming/ReaderTest.java b/test/com/amazon/ion/streaming/ReaderTest.java index 26608e6272..65eebcf87b 100644 --- a/test/com/amazon/ion/streaming/ReaderTest.java +++ b/test/com/amazon/ion/streaming/ReaderTest.java @@ -32,7 +32,6 @@ import java.math.BigInteger; import java.util.Arrays; -import org.junit.Assert; import org.junit.Ignore; import org.junit.Test;