mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
cleanup of minor warnings
This commit is contained in:
parent
a63fa03062
commit
bc347d2c19
4 changed files with 4 additions and 5 deletions
|
@ -233,8 +233,8 @@ public class JSONPointer {
|
|||
int index = Integer.parseInt(indexToken);
|
||||
JSONArray currentArr = (JSONArray) current;
|
||||
if (index >= currentArr.length()) {
|
||||
throw new JSONPointerException(format("index %d is out of bounds - the array has %d elements", index,
|
||||
currentArr.length()));
|
||||
throw new JSONPointerException(format("index %s is out of bounds - the array has %d elements", indexToken,
|
||||
Integer.valueOf(currentArr.length())));
|
||||
}
|
||||
try {
|
||||
return currentArr.get(index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue