ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r384097 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java
Date Wed, 08 Mar 2006 02:40:32 GMT
Author: kevj
Date: Tue Mar  7 18:40:31 2006
New Revision: 384097

URL: http://svn.apache.org/viewcvs?rev=384097&view=rev
Log:
- minor tweak to reduce scope of variable, fix comments

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java?rev=384097&r1=384096&r2=384097&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java Tue
Mar  7 18:40:31 2006
@@ -73,9 +73,8 @@
      */
     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 @@
             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;
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message