From 3e985c2b0f93e8490d300d9eb0ff77865afa9501 Mon Sep 17 00:00:00 2001 From: REAS Date: Mon, 9 Nov 2015 16:50:42 -0800 Subject: [PATCH] Add isNull() to JSONArray and JSONObject reference --- core/src/processing/data/JSONArray.java | 1 + core/src/processing/data/JSONObject.java | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/processing/data/JSONArray.java b/core/src/processing/data/JSONArray.java index 58a2a4fd7..0ec016d3f 100644 --- a/core/src/processing/data/JSONArray.java +++ b/core/src/processing/data/JSONArray.java @@ -1047,6 +1047,7 @@ public class JSONArray { /** * Determine if the value is null. + * @webref * @param index must be between 0 and length() - 1 * @return true if the value at the index is null, or if there is no value. */ diff --git a/core/src/processing/data/JSONObject.java b/core/src/processing/data/JSONObject.java index d98030650..8b8d2f170 100644 --- a/core/src/processing/data/JSONObject.java +++ b/core/src/processing/data/JSONObject.java @@ -592,7 +592,7 @@ public class JSONObject { * * @webref jsonobject:method * @brief Gets the int value associated with a key - * @param key a key string + * @param key A key string. * @return The integer value. * @throws JSONException if the key is not found or if the value cannot * be converted to an integer. @@ -900,8 +900,10 @@ public class JSONObject { /** - * Determine if the value associated with the key is null or if there is - * no value. + * Determine if the value associated with the key is null or if there is + * no value. + * + * @webref * @param key A key string. * @return true if there is no value associated with the key or if * the value is the JSONObject.NULL object.