You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by be...@apache.org on 2021/09/07 03:47:06 UTC

[incubator-wayang] 03/03: [WAYANG-38] notice added on JSONArray and JSONObject

This is an automated email from the ASF dual-hosted git repository.

bertty pushed a commit to branch WAYANG-38
in repository https://gitbox.apache.org/repos/asf/incubator-wayang.git

commit d4a45fd6cd1515b38702c350acacedff7c47f6ca
Author: Bertty Contreras-Rojas <be...@scalytics.io>
AuthorDate: Tue Sep 7 05:46:27 2021 +0200

    [WAYANG-38] notice added on JSONArray and JSONObject
    
    Signed-off-by: bertty <be...@gmail.com>
---
 .../main/java/org/apache/wayang/core/util/json/JSONArray.java  | 10 ++++++++++
 .../main/java/org/apache/wayang/core/util/json/JSONObject.java | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONArray.java b/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONArray.java
index 6764188..35155a4 100644
--- a/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONArray.java
+++ b/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONArray.java
@@ -34,6 +34,16 @@ import java.util.function.Consumer;
 import java.util.stream.StreamSupport;
 import org.apache.wayang.core.api.exception.WayangException;
 
+/**
+ * JSONArray is the wrapper for the {@link ArrayNode} to enable the
+ * similar functionality as the http://javadox.com/org.json/json/20151123/org/json/JSONArray.html
+ *
+ * TODO: require implement the rest of the functionalities follow the link below
+ * https://github.com/stleary/JSON-java/blob/master/src/main/java/org/json/JSONArray.java
+ *
+ * TODO: the java doc is not done because is missing implementation and it performed some
+ *       modification on the code
+ */
 public class JSONArray implements Iterable<Object>{
 
   private ArrayNode node;
diff --git a/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONObject.java b/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONObject.java
index 3d49152..ebb4c2f 100644
--- a/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONObject.java
+++ b/wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/json/JSONObject.java
@@ -33,6 +33,16 @@ import java.util.Set;
 import java.util.function.BiConsumer;
 import org.apache.wayang.core.api.exception.WayangException;
 
+/**
+ * JSONObject is the wrapper for the {@link ObjectNode} to enable the
+ * similar functionality as the http://javadox.com/org.json/json/20151123/org/json/JSONObject.html
+ *
+ * TODO: require implement the rest of the functionalities follow the link below
+ * https://github.com/stleary/JSON-java/blob/master/src/main/java/org/json/JSONObject.java
+ *
+ * TODO: the java doc is not done because is missing implementation and it performed some
+ *       modification on the code
+ */
 public class JSONObject {
   public static final NullNode NULL = NullNode.getInstance();