Skip to content

Commit

Permalink
Fix ktlint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Nov 7, 2023
1 parent 5054674 commit 3ec57d9
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 51 deletions.
1 change: 0 additions & 1 deletion src/com/amazon/ion/impl/IonReaderTreeUserX.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/com/amazon/ion/impl/IonWriterUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/com/amazon/ion/impl/LocalSymbolTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/com/amazon/ion/impl/_Private_IonReaderBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/com/amazon/ion/impl/bin/IonRawBinaryWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
4 changes: 1 addition & 3 deletions src/com/amazon/ion/impl/lite/IonSequenceLite.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions src/com/amazon/ion/impl/lite/IonStructLite.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 1 addition & 6 deletions src/com/amazon/ion/util/JarInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion test/com/amazon/ion/BinaryReaderSystemProcessingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions test/com/amazon/ion/BinaryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion test/com/amazon/ion/BlobTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/com/amazon/ion/IonTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions test/com/amazon/ion/IonValueTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import org.junit.Test;

import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;


Expand Down
1 change: 0 additions & 1 deletion test/com/amazon/ion/StructTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/com/amazon/ion/impl/BinaryWriterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions test/com/amazon/ion/impl/IonReaderBinaryRawStringTest.java
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions test/com/amazon/ion/impl/IonWriterTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions test/com/amazon/ion/impl/_Private_ScalarConversionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion test/com/amazon/ion/junit/IonAssert.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions test/com/amazon/ion/streaming/BadIonStreamingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/com/amazon/ion/streaming/ReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.math.BigInteger;
import java.util.Arrays;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

Expand Down

0 comments on commit 3ec57d9

Please sign in to comment.