Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.6
-
Fix Version/s: 1.9.7
-
Component/s: JSON tree (JsonNode)
-
Labels:None
-
Number of attachments :
Description
The implementation of MissingNode returns 0 for calls like "asInt(4)", but I would expect the passed-in default value to be returned instead. This would remove another layer of if checking.
Attached is an example; I would expect val to be 4. Output is:
Hello
Missing: true
Value was: 0