Skip to content

Commit ce8caa1

Browse files
committed
refactor method visibility: make it public instead of protected
1 parent 85debb9 commit ce8caa1

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/main/java/graphql/util/RecursionState.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ public TraverserContext<T> peek() {
3737

3838
public abstract void pushAll(TraverserContext<T> o, Function<? super T, ? extends List<T>> getChildren);
3939

40-
protected void addAll(Collection<? extends T> col) {
40+
public void addAll(Collection<? extends T> col) {
4141
assertNotNull(col).stream().map((x) -> newContext(x, null)).collect(Collectors.toCollection(() -> delegate));
4242
}
4343

44-
protected boolean isEmpty() {
44+
public boolean isEmpty() {
4545
return delegate.isEmpty();
4646
}
4747

48-
protected void clear() {
48+
public void clear() {
4949
delegate.clear();
5050
visitedMap.clear();
5151
}
5252

53-
protected TraverserContext<T> newContext(final T o, final TraverserContext<T> parent) {
53+
public TraverserContext<T> newContext(final T o, final TraverserContext<T> parent) {
5454
return new TraverserContext<T>() {
5555
@Override
5656
public T thisNode() {
@@ -91,7 +91,4 @@ protected Deque<TraverserContext<?>> getDelegate() {
9191
return delegate;
9292
}
9393

94-
protected Map<T, Object> getVisitedMap() {
95-
return visitedMap;
96-
}
9794
}

0 commit comments

Comments
 (0)