Merge pull request #4336 from Akarshit/bugifx-accessModifier

Changed the access modifier of get()
This commit is contained in:
Ben Fry
2016-10-29 11:06:12 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -263,7 +263,7 @@ public class JSONArray {
* @return An object value.
* @throws RuntimeException If there is no value for the index.
*/
private Object get(int index) {
public Object get(int index) {
Object object = opt(index);
if (object == null) {
throw new RuntimeException("JSONArray[" + index + "] not found.");