Skip to content

Commit 9abdb19

Browse files
committed
Move utility class marker constructor to the top
1 parent 91a41a8 commit 9abdb19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/trino-main/src/main/java/io/trino/util/JsonUtil.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102

103103
public final class JsonUtil
104104
{
105+
private JsonUtil() {}
106+
105107
public static final JsonFactory JSON_FACTORY = new JsonFactoryBuilder().disable(CANONICALIZE_FIELD_NAMES).build();
106108

107109
// This object mapper is constructed without .configure(ORDER_MAP_ENTRIES_BY_KEYS, true) because
@@ -111,8 +113,6 @@ public final class JsonUtil
111113

112114
private static final int MAX_JSON_LENGTH_IN_ERROR_MESSAGE = 10_000;
113115

114-
private JsonUtil() {}
115-
116116
public static JsonParser createJsonParser(JsonFactory factory, Slice json)
117117
throws IOException
118118
{

0 commit comments

Comments
 (0)