diff --git a/src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java index 631447fca..8b94137ae 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java @@ -77,20 +77,20 @@ import org.apache.commons.collections4.Transformer; public class ObjectGraphIterator implements Iterator { /** The stack of iterators */ - protected final ArrayStack> stack = new ArrayStack>(8); + private final ArrayStack> stack = new ArrayStack>(8); /** The root object in the tree */ - protected E root; + private E root; /** The transformer to use */ - protected final Transformer transformer; + private final Transformer transformer; /** Whether there is another element in the iteration */ - protected boolean hasNext = false; + private boolean hasNext = false; /** The current iterator */ - protected Iterator currentIterator; + private Iterator currentIterator; /** The current value */ - protected E currentValue; + private E currentValue; /** The last used iterator, needed for remove() */ - protected Iterator lastUsedIterator; + private Iterator lastUsedIterator; //----------------------------------------------------------------------- /**