Skip to content

Commit 4db73f7

Browse files
committed
Simplify the filter.
1 parent f0adc72 commit 4db73f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/test/java/org/json/stream/LimitBuilderTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,13 +907,13 @@ public DummyFilter() {
907907
}
908908

909909
@Override
910-
public boolean acceptIndex(int index, JSONStreamReader.ParseState state, int stackDepth, Iterable<StructureBuilder> stack) {
910+
public boolean acceptIndex(int index, JSONStreamReader.ParseState state, Iterable<StructureBuilder> stack) {
911911
pointerList.add(JSONPointerUtils.toJSONPointer(stack));
912912
return true;
913913
}
914914

915915
@Override
916-
public boolean acceptField(String fieldName, JSONStreamReader.ParseState state, int stackDepth, Iterable<StructureBuilder> stack) {
916+
public boolean acceptField(String fieldName, JSONStreamReader.ParseState state, Iterable<StructureBuilder> stack) {
917917
pointerList.add(JSONPointerUtils.toJSONPointer(stack));
918918
return true;//"key2".equals(fieldName);
919919
}

0 commit comments

Comments
 (0)