Skip to content

Commit 58a3bbe

Browse files
authored
refactor: reorder imports (#1346)
1 parent 39619e3 commit 58a3bbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+62
-74
lines changed

src/main/java/tools/jackson/core/JsonGenerator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
*/
55
package tools.jackson.core;
66

7-
import static tools.jackson.core.JsonTokenId.*;
8-
97
import java.io.*;
108
import java.math.BigDecimal;
119
import java.math.BigInteger;
1210
import java.util.Objects;
1311

1412
import tools.jackson.core.JsonParser.NumberType;
13+
import tools.jackson.core.exc.JacksonIOException;
1514
import tools.jackson.core.exc.StreamReadException;
1615
import tools.jackson.core.exc.StreamWriteException;
17-
import tools.jackson.core.exc.JacksonIOException;
1816
import tools.jackson.core.io.CharacterEscapes;
1917
import tools.jackson.core.type.WritableTypeId;
2018
import tools.jackson.core.type.WritableTypeId.Inclusion;
2119
import tools.jackson.core.util.JacksonFeatureSet;
2220

21+
import static tools.jackson.core.JsonTokenId.*;
22+
2323
/**
2424
* Base class that defines public API for writing JSON content.
2525
* Instances are created using factory methods of

src/main/java/tools/jackson/core/JsonParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
import tools.jackson.core.async.NonBlockingInputFeeder;
1313
import tools.jackson.core.exc.InputCoercionException;
14-
import tools.jackson.core.exc.StreamReadException;
1514
import tools.jackson.core.exc.JacksonIOException;
15+
import tools.jackson.core.exc.StreamReadException;
1616
import tools.jackson.core.json.JsonFactory;
1717
import tools.jackson.core.json.JsonReadFeature;
1818
import tools.jackson.core.sym.PropertyNameMatcher;

src/main/java/tools/jackson/core/ObjectWriteContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import java.io.OutputStream;
44
import java.io.Writer;
55

6-
import tools.jackson.core.exc.StreamWriteException;
76
import tools.jackson.core.exc.JacksonIOException;
7+
import tools.jackson.core.exc.StreamWriteException;
88
import tools.jackson.core.io.CharacterEscapes;
99
import tools.jackson.core.tree.ArrayTreeNode;
1010
import tools.jackson.core.tree.ObjectTreeNode;

src/main/java/tools/jackson/core/PrettyPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
package tools.jackson.core;
77

8-
import tools.jackson.core.exc.StreamWriteException;
98
import tools.jackson.core.exc.JacksonIOException;
9+
import tools.jackson.core.exc.StreamWriteException;
1010
import tools.jackson.core.io.SerializedString;
1111
import tools.jackson.core.util.Separators;
1212

src/main/java/tools/jackson/core/TokenStreamFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
import java.util.Objects;
1414

1515
import tools.jackson.core.async.ByteArrayFeeder;
16-
import tools.jackson.core.exc.StreamReadException;
1716
import tools.jackson.core.exc.JacksonIOException;
17+
import tools.jackson.core.exc.StreamReadException;
1818
import tools.jackson.core.io.*;
1919
import tools.jackson.core.json.JsonFactory;
2020
import tools.jackson.core.sym.PropertyNameMatcher;

src/main/java/tools/jackson/core/base/ParserBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import tools.jackson.core.*;
88
import tools.jackson.core.exc.InputCoercionException;
9+
import tools.jackson.core.exc.JacksonIOException;
910
import tools.jackson.core.exc.StreamConstraintsException;
1011
import tools.jackson.core.exc.StreamReadException;
11-
import tools.jackson.core.exc.JacksonIOException;
1212
import tools.jackson.core.io.ContentReference;
1313
import tools.jackson.core.io.IOContext;
1414
import tools.jackson.core.io.NumberInput;

src/main/java/tools/jackson/core/base/ParserMinimalBase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
package tools.jackson.core.base;
22

3-
import static tools.jackson.core.JsonTokenId.*;
4-
53
import java.io.IOException;
64
import java.io.Writer;
75
import java.math.BigDecimal;
86
import java.math.BigInteger;
97

108
import tools.jackson.core.*;
119
import tools.jackson.core.exc.InputCoercionException;
12-
import tools.jackson.core.exc.StreamReadException;
13-
import tools.jackson.core.exc.UnexpectedEndOfInputException;
1410
import tools.jackson.core.exc.JacksonIOException;
1511
import tools.jackson.core.exc.StreamConstraintsException;
12+
import tools.jackson.core.exc.StreamReadException;
13+
import tools.jackson.core.exc.UnexpectedEndOfInputException;
1614
import tools.jackson.core.io.IOContext;
1715
import tools.jackson.core.io.NumberInput;
1816
import tools.jackson.core.sym.PropertyNameMatcher;
@@ -22,6 +20,8 @@
2220
import tools.jackson.core.util.JacksonFeatureSet;
2321
import tools.jackson.core.util.VersionUtil;
2422

23+
import static tools.jackson.core.JsonTokenId.*;
24+
2525
/**
2626
* Intermediate base class used by all Jackson {@link JsonParser}
2727
* implementations, but does not add any additional fields that depend

src/main/java/tools/jackson/core/filter/FilteringParserDelegate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package tools.jackson.core.filter;
22

3-
import static tools.jackson.core.JsonTokenId.*;
4-
53
import tools.jackson.core.*;
64
import tools.jackson.core.filter.TokenFilter.Inclusion;
75
import tools.jackson.core.sym.PropertyNameMatcher;
86
import tools.jackson.core.util.JsonParserDelegate;
97

8+
import static tools.jackson.core.JsonTokenId.*;
9+
1010
/**
1111
* Specialized {@link JsonParserDelegate} that allows use of
1212
* {@link TokenFilter} for outputting a subset of content that

src/main/java/tools/jackson/core/io/BigDecimalParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package tools.jackson.core.io;
22

3-
import ch.randelshofer.fastdoubleparser.JavaBigDecimalParser;
4-
53
import java.math.BigDecimal;
64

5+
import ch.randelshofer.fastdoubleparser.JavaBigDecimalParser;
6+
77
/**
88
* Internal Jackson Helper class used to implement more optimized parsing of
99
* {@link BigDecimal} for REALLY big values (over 500 characters).

src/main/java/tools/jackson/core/io/BigIntegerParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package tools.jackson.core.io;
22

3-
import ch.randelshofer.fastdoubleparser.JavaBigIntegerParser;
4-
53
import java.math.BigInteger;
64

5+
import ch.randelshofer.fastdoubleparser.JavaBigIntegerParser;
6+
77
import static tools.jackson.core.io.BigDecimalParser.MAX_CHARS_TO_REPORT;
88

99
/**

0 commit comments

Comments
 (0)