Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
Signed-off-by: 西狩 <[email protected]>
  • Loading branch information
lihuimingxs committed Jan 2, 2024
1 parent 22694ac commit 83afda5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,3 @@ private static JsonpMappingException from0(Throwable cause, Object ref, Object p
return jme.prepend0(ref, pathItem);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static JsonProvider findProvider() {
RuntimeException exception;
try {
return JsonProvider.provider();
} catch(RuntimeException re) {
} catch (RuntimeException re) {
exception = re;
}

Expand All @@ -85,13 +85,13 @@ static JsonProvider findProvider() {

try {
return ServiceLoader.load(JsonProvider.class, JsonpUtils.class.getClassLoader()).iterator().next();
} catch(Exception e) {
} catch (Exception e) {
// ignore
}

try {
return ServiceLoader.load(JsonProvider.class, JsonProvider.class.getClassLoader()).iterator().next();
} catch(Exception e) {
} catch (Exception e) {
// ignore
}

Expand Down Expand Up @@ -148,7 +148,7 @@ public static void skipValue(JsonParser parser) {
* Skip the value at the current position of the parser.
*/
public static void skipValue(JsonParser parser, Event event) {
switch(event) {
switch (event) {
case START_OBJECT:
parser.skipObject();
break;
Expand Down Expand Up @@ -248,7 +248,10 @@ public static <T> void serialize(T value, JsonGenerator generator, @Nullable Jso
* (the object has been consumed from the original one).
*/
public static Map.Entry<String, JsonParser> lookAheadFieldValue(
String name, String defaultValue, JsonParser parser, JsonpMapper mapper
String name,
String defaultValue,
JsonParser parser,
JsonpMapper mapper
) {
JsonLocation location = parser.getLocation();

Expand Down

0 comments on commit 83afda5

Please sign in to comment.