1
0
Fork 0
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:
John J. Aylward 2018-10-02 13:14:22 -04:00
parent a63fa03062
commit bc347d2c19
4 changed files with 4 additions and 5 deletions

View file

@ -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);