From f96f505188e0161c4df78bc827bc05702f08024b Mon Sep 17 00:00:00 2001 From: Sean Leary Date: Mon, 15 Aug 2016 01:53:08 -0500 Subject: [PATCH 1/2] Update JSONArray.java Fixed a Javadoc typo, originally fixed in #249, since reverted. This is to address issue #263 --- JSONArray.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JSONArray.java b/JSONArray.java index 776a2bd..2446fd6 100644 --- a/JSONArray.java +++ b/JSONArray.java @@ -78,7 +78,7 @@ import java.util.Map; * * * @author JSON.org - * @version 2016-05-20 + * @version 2016-08/15 */ public class JSONArray implements Iterable { @@ -961,7 +961,7 @@ public class JSONArray implements Iterable { } /** - * Creates a JSONPointer using an intialization string and tries to + * Creates a JSONPointer using an initialization string and tries to * match it to an item within this JSONArray. For example, given a * JSONArray initialized with this document: *

From 7232a95c0bb3319edb20787430afe0fcd70d7c22 Mon Sep 17 00:00:00 2001
From: Sean Leary 
Date: Mon, 15 Aug 2016 01:58:54 -0500
Subject: [PATCH 2/2] Update JSONObject.java

Fixed some typos committed in #249, since reverted, tracking issue is #263
---
 JSONObject.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/JSONObject.java b/JSONObject.java
index aa227ff..ed86fab 100644
--- a/JSONObject.java
+++ b/JSONObject.java
@@ -93,7 +93,7 @@ import java.util.Set;
  * 
  *
  * @author JSON.org
- * @version 2016-05-20
+ * @version 2016-08-15
  */
 public class JSONObject {
     /**
@@ -132,6 +132,7 @@ public class JSONObject {
          *
          * @return The string "null".
          */
+        @Override
         public String toString() {
             return "null";
         }
@@ -1621,6 +1622,7 @@ public class JSONObject {
      *         brace) and ending with } (right
      *         brace).
      */
+    @Override
     public String toString() {
         try {
             return this.toString(0);
@@ -1880,13 +1882,13 @@ public class JSONObject {
     }
 
     /**
-     * Returns a java.util.Map containing all of the entrys in this object.
+     * Returns a java.util.Map containing all of the entries in this object.
      * If an entry in the object is a JSONArray or JSONObject it will also
      * be converted.
      * 

* Warning: This method assumes that the data structure is acyclical. * - * @return a java.util.Map containing the entrys of this object + * @return a java.util.Map containing the entries of this object */ public Map toMap() { Map results = new HashMap();