Polish "Refactor BasicJsonParser to simplify JSON parsing logic"

See gh-41876
This commit is contained in:
Moritz Halbritter 2024-08-21 13:20:36 +02:00
parent 4a41006ee0
commit 66a41db079
1 changed files with 2 additions and 2 deletions

View File

@ -93,11 +93,11 @@ public class BasicJsonParser extends AbstractJsonParser {
try { try {
return Long.valueOf(json); return Long.valueOf(json);
} }
catch (NumberFormatException e) { catch (NumberFormatException ex) {
try { try {
return Double.valueOf(json); return Double.valueOf(json);
} }
catch (NumberFormatException ex) { catch (NumberFormatException ex2) {
return json; return json;
} }
} }