peterreilly 2005/01/21 06:25:54
Modified: src/main/org/apache/tools/ant/taskdefs/repository
EnabledLibraryElementList.java
Log:
remove _fields
Revision Changes Path
1.2 +10 -9
ant/src/main/org/apache/tools/ant/taskdefs/repository/EnabledLibraryElementList.java
Index: EnabledLibraryElementList.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/repository/EnabledLibraryElementList.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EnabledLibraryElementList.java 18 Nov 2004 16:00:18 -0000 1.1
+++ EnabledLibraryElementList.java 21 Jan 2005 14:25:53 -0000 1.2
@@ -44,8 +44,8 @@
* 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 @@
* @param collection
*/
EnabledIterator(Collection collection) {
- _underlyingIterator = collection.iterator();
+ underlyingIterator = collection.iterator();
}
@@ -64,13 +64,14 @@
* @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 @@
if (!hasNext()) {
throw new NoSuchElementException();
}
- EnabledLibraryElement result = _next;
- _next = null;
+ EnabledLibraryElement result = next;
+ next = null;
return result;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]