Polish "Refactor BasicJsonParser to simplify JSON parsing logic"
See gh-41876
This commit is contained in:
parent
4a41006ee0
commit
66a41db079
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue