[Git][java-team/libandroid-json-org-java][master] 2 commits: Expose "implements Iterator" in JSONArray

Ximin Luo gitlab at salsa.debian.org
Tue Nov 27 06:22:36 GMT 2018


Ximin Luo pushed to branch master at Debian Java Maintainers / libandroid-json-org-java


Commits:
d35bc9c9 by Ximin Luo at 2018-11-27T05:46:51Z
Expose "implements Iterator" in JSONArray

- - - - -
072b6cfa by Ximin Luo at 2018-11-27T06:21:23Z
Release 20121204-20090211-5 to Debian unstable.

- - - - -


2 changed files:

- debian/changelog
- debian/patches-latest/api.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+libandroid-json-org-java (20121204-20090211-5) unstable; urgency=medium
+
+  * Expose "JSONArray implements Iterator<Object>" in the emulated "latest" API.
+
+ -- Ximin Luo <infinity0 at debian.org>  Mon, 26 Nov 2018 22:21:17 -0800
+
 libandroid-json-org-java (20121204-20090211-4) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches-latest/api.patch
=====================================
@@ -11,6 +11,39 @@ Index: 20180130/src/main/java/org/json/JSONException.java
  
      public JSONException(String s) {
          super(s);
+Index: 20180130/src/main/java/org/json/JSONArray.java
+===================================================================
+--- 20180130.orig/src/main/java/org/json/JSONArray.java
++++ 20180130/src/main/java/org/json/JSONArray.java
+@@ -18,6 +18,7 @@ package org.json;
+ 
+ import java.util.ArrayList;
+ import java.util.Collection;
++import java.util.Iterator;
+ import java.util.List;
+ 
+ // Note: this class was written without inspecting the non-free org.json sourcecode.
+@@ -44,7 +45,7 @@ import java.util.List;
+  * <i>Effective Java</i> Item 17, "Design and Document or inheritance or else
+  * prohibit it" for further information.
+  */
+-public class JSONArray {
++public class JSONArray implements Iterable<Object> {
+ 
+     private final List<Object> values;
+ 
+@@ -103,6 +104,11 @@ public class JSONArray {
+         this(new JSONTokener(json));
+     }
+ 
++    @Override
++    public Iterator<Object> iterator() {
++        return this.values.iterator();
++    }
++
+     /**
+      * Returns the number of values in this array.
+      */
 Index: 20180130/src/main/java/org/json/JSONTokener.java
 ===================================================================
 --- 20180130.orig/src/main/java/org/json/JSONTokener.java



View it on GitLab: https://salsa.debian.org/java-team/libandroid-json-org-java/compare/2acf936a11dcb88161febb1c0e724405c722ea06...072b6cfa41fc562dd9890b7a8d7f951b54ccc99a

-- 
View it on GitLab: https://salsa.debian.org/java-team/libandroid-json-org-java/compare/2acf936a11dcb88161febb1c0e724405c722ea06...072b6cfa41fc562dd9890b7a8d7f951b54ccc99a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181127/019973db/attachment.html>


More information about the pkg-java-commits mailing list