From 618526facad92e90078a45fe0c75a51c03c752a4 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 21 Jan 2005 14:25:53 +0000 Subject: [PATCH] remove _fields git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277411 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/EnabledLibraryElementList.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/repository/EnabledLibraryElementList.java b/src/main/org/apache/tools/ant/taskdefs/repository/EnabledLibraryElementList.java index ff5168018..c9b10bad1 100644 --- a/src/main/org/apache/tools/ant/taskdefs/repository/EnabledLibraryElementList.java +++ b/src/main/org/apache/tools/ant/taskdefs/repository/EnabledLibraryElementList.java @@ -44,8 +44,8 @@ public class EnabledLibraryElementList extends LinkedList { * iterator through a list that skips everything that is not enabled */ private static class EnabledIterator implements Iterator { - private Iterator _underlyingIterator; - private EnabledLibraryElement _next; + private Iterator underlyingIterator; + private EnabledLibraryElement next; /** @@ -54,7 +54,7 @@ public class EnabledLibraryElementList extends LinkedList { * @param collection */ EnabledIterator(Collection collection) { - _underlyingIterator = collection.iterator(); + underlyingIterator = collection.iterator(); } @@ -64,13 +64,14 @@ public class EnabledLibraryElementList extends LinkedList { * @return */ public boolean hasNext() { - while (_next == null && _underlyingIterator.hasNext()) { - EnabledLibraryElement candidate = (EnabledLibraryElement) _underlyingIterator.next(); + while (next == null && underlyingIterator.hasNext()) { + EnabledLibraryElement candidate = + (EnabledLibraryElement) underlyingIterator.next(); if (candidate.getEnabled()) { - _next = candidate; + next = candidate; } } - return (_next != null); + return (next != null); } /** @@ -82,8 +83,8 @@ public class EnabledLibraryElementList extends LinkedList { if (!hasNext()) { throw new NoSuchElementException(); } - EnabledLibraryElement result = _next; - _next = null; + EnabledLibraryElement result = next; + next = null; return result; }