Browse Source

- minor tweak to reduce scope of variable, fix comments

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@384097 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 19 years ago
parent
commit
a603964d0e
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java

+ 3
- 4
src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java View File

@@ -73,9 +73,8 @@ class ChangeLogParser {
*/
public CVSEntry[] getEntrySetAsArray() {
final CVSEntry[] array = new CVSEntry[ entries.size() ];
Enumeration e = entries.elements();
int i = 0;
while (e.hasMoreElements()) {
for(Enumeration e = entries.elements(); e.hasMoreElements();) {
array[i++] = (CVSEntry) e.nextElement();
}
return array;
@@ -164,8 +163,8 @@ class ChangeLogParser {
revision = line.substring(9);
status = GET_DATE;
} else if (line.startsWith("======")) {
//There was no revisions in this changelog
//entry so lets move unto next file
//There were no revisions in this changelog
//entry so lets move onto next file
status = GET_FILE;
}
}


Loading…
Cancel
Save