Skip to content

Commit 5526502

Browse files
committed
Changed the access modifier of get()
1 parent d1e20da commit 5526502

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/processing/data/JSONArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private Object opt(int index) {
263263
* @return An object value.
264264
* @throws JSONException If there is no value for the index.
265265
*/
266-
private Object get(int index) {
266+
public Object get(int index) {
267267
Object object = opt(index);
268268
if (object == null) {
269269
throw new RuntimeException("JSONArray[" + index + "] not found.");

core/src/processing/data/JSONObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ static protected String doubleToString(double d) {
540540
* @return The object associated with the key.
541541
* @throws JSONException if the key is not found.
542542
*/
543-
private Object get(String key) {
543+
public Object get(String key) {
544544
if (key == null) {
545545
throw new RuntimeException("Null key.");
546546
}

0 commit comments

Comments
 (0)