Skip to content

Commit

Permalink
streams - removed unneeded overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Leary authored and Sean Leary committed Sep 4, 2023
1 parent 960b374 commit 870b5f2
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/org/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,12 @@
* @version 2016-08-15
*/
public class JSONObject implements Iterable<String> {

@Override
public Iterator<String> iterator() {
return keys();
}

@Override
public void forEach(Consumer<? super String> action) {
Iterable.super.forEach(action);
}

@Override
public Spliterator<String> spliterator() {
return Iterable.super.spliterator();
}

/**
* JSONObject.NULL is equivalent to the value that JavaScript calls null,
* whilst Java's null is equivalent to the value that JavaScript calls
Expand Down

0 comments on commit 870b5f2

Please sign in to comment.