From 411c031a68c5be5d1a02b20f39ead87762b0ab4c Mon Sep 17 00:00:00 2001 From: Akarshit Wal Date: Sun, 28 Feb 2016 21:28:50 +0530 Subject: [PATCH] Changed the access modifier of put() and putOnce() --- core/src/processing/data/JSONObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/processing/data/JSONObject.java b/core/src/processing/data/JSONObject.java index cedf11e86..2d27c8f1f 100644 --- a/core/src/processing/data/JSONObject.java +++ b/core/src/processing/data/JSONObject.java @@ -1302,7 +1302,7 @@ public class JSONObject { * @throws JSONException If the value is non-finite number * or if the key is null. */ - private JSONObject put(String key, Object value) { + public JSONObject put(String key, Object value) { String pooled; if (key == null) { throw new RuntimeException("Null key."); @@ -1335,7 +1335,7 @@ public class JSONObject { * @return his. * @throws JSONException if the key is a duplicate */ - private JSONObject putOnce(String key, Object value) { + public JSONObject putOnce(String key, Object value) { if (key != null && value != null) { if (this.opt(key) != null) { throw new RuntimeException("Duplicate key \"" + key + "\"");