cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject svn commit: r312782 - /cocoon/blocks/scratchpad/trunk/garbage/source/java/org/apache/garbage/serializer/encoding/CharsetFactory.java
Date Tue, 11 Oct 2005 02:05:02 GMT
Author: bloritsch
Date: Mon Oct 10 19:04:59 2005
New Revision: 312782

URL: http://svn.apache.org/viewcvs?rev=312782&view=rev
Log:
future proof by not using reserved word

Modified:
    cocoon/blocks/scratchpad/trunk/garbage/source/java/org/apache/garbage/serializer/encoding/CharsetFactory.java

Modified: cocoon/blocks/scratchpad/trunk/garbage/source/java/org/apache/garbage/serializer/encoding/CharsetFactory.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/scratchpad/trunk/garbage/source/java/org/apache/garbage/serializer/encoding/CharsetFactory.java?rev=312782&r1=312781&r2=312782&view=diff
==============================================================================
--- cocoon/blocks/scratchpad/trunk/garbage/source/java/org/apache/garbage/serializer/encoding/CharsetFactory.java
(original)
+++ cocoon/blocks/scratchpad/trunk/garbage/source/java/org/apache/garbage/serializer/encoding/CharsetFactory.java
Mon Oct 10 19:04:59 2005
@@ -32,7 +32,7 @@
  * 
  * 
  * @author <a href="mailto:pier@apache.org">Pier Fumagalli</a>, February 2003
- * @version CVS $Id: CharsetFactory.java,v 1.2 2004/03/05 10:07:22 bdelacretaz Exp $
+ * @version CVS $Id$
  */
 public final class CharsetFactory {
 
@@ -119,9 +119,9 @@
             mtch = mtch.substring(2, mtch.lastIndexOf('/') + 1) + "cs_";
     
             ZipFile zip = new ZipFile(file);
-            Enumeration enum = zip.entries();
-            while (enum.hasMoreElements()) {
-                ZipEntry entry = (ZipEntry)enum.nextElement();
+            Enumeration files = zip.entries();
+            while (files.hasMoreElements()) {
+                ZipEntry entry = (ZipEntry)files.nextElement();
                 String name = entry.getName();
                 if ((! name.startsWith(mtch)) ||
                     (! name.endsWith(".class"))) continue;



Mime
View raw message