Changed the access modifier of get()

This commit is contained in:
Akarshit Wal
2016-02-28 17:09:41 +05:30
parent b3da867769
commit e5e565ebe4
2 changed files with 2 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ public class JSONArray {
* @return An object value.
* @throws JSONException 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.");