Fields can be private

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1477614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-04-30 13:11:28 +00:00
parent b222008978
commit c7f3ce1ab6
1 changed files with 7 additions and 7 deletions

View File

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