Polish "Refactor BasicJsonParser to simplify JSON parsing logic"
See gh-41876
This commit is contained in:
@@ -93,11 +93,11 @@ public class BasicJsonParser extends AbstractJsonParser {
|
||||
try {
|
||||
return Long.valueOf(json);
|
||||
}
|
||||
catch (NumberFormatException e) {
|
||||
catch (NumberFormatException ex) {
|
||||
try {
|
||||
return Double.valueOf(json);
|
||||
}
|
||||
catch (NumberFormatException ex) {
|
||||
catch (NumberFormatException ex2) {
|
||||
return json;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user