commit | 8e2f8aff8b2c9493ebffb8ad3825e58d02253471 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jan 21 19:17:47 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Jan 22 13:14:43 2015 -0800 |
tree | 4889b9959ab5a6e4271fdd971af7235dd0f4ff3a | |
parent | 1d5df1fbd8c786e0f936cb0175e4a3f288fc1890 [diff] |
Throw JSONException rather than NumberFormatException for an invalid escape. Only our documentation claims that any of the JSON code throws NumberFormatException, and throwing JSONException seems much more in keeping with the rest of the API (and makes it easier for callers to handle errors). Bug: https://code.google.com/p/android/issues/detail?id=103641 Change-Id: I4f4ebfd983f4ccb2a1f266a0bfa5732174df26f6