dims 2005/01/26 07:54:19 Modified: attributes/api/src/java/org/apache/commons/attributes AttributeIndex.java attributes/compiler/src/java/org/apache/commons/attributes/compiler AttributeIndexer.java attributes/compiler/src/java/org/apache/commons/attributes/validation AttributeValidatorTask.java Log: trivial enum changes for jdk1.5 from Stefan Bodewig Revision Changes Path 1.3 +4 -4 jakarta-commons/attributes/api/src/java/org/apache/commons/attributes/AttributeIndex.java Index: AttributeIndex.java =================================================================== RCS file: /home/cvs/jakarta-commons/attributes/api/src/java/org/apache/commons/attributes/AttributeIndex.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- AttributeIndex.java 27 Aug 2004 21:30:10 -0000 1.2 +++ AttributeIndex.java 26 Jan 2005 15:54:19 -0000 1.3 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 The Apache Software Foundation + * Copyright 2003-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -219,9 +219,9 @@ */ public AttributeIndex (ClassLoader cl) throws Exception { this.classLoader = cl; - Enumeration enum = cl.getResources ("META-INF/attrs.index"); - while (enum.hasMoreElements ()) { - URL url = (URL) enum.nextElement (); + Enumeration e = cl.getResources ("META-INF/attrs.index"); + while (e.hasMoreElements ()) { + URL url = (URL) e.nextElement (); loadFromURL (url); } 1.2 +4 -4 jakarta-commons/attributes/compiler/src/java/org/apache/commons/attributes/compiler/AttributeIndexer.java Index: AttributeIndexer.java =================================================================== RCS file: /home/cvs/jakarta-commons/attributes/compiler/src/java/org/apache/commons/attributes/compiler/AttributeIndexer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AttributeIndexer.java 6 Jul 2004 20:42:04 -0000 1.1 +++ AttributeIndexer.java 26 Jan 2005 15:54:19 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 The Apache Software Foundation + * Copyright 2003-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -150,9 +150,9 @@ File newJarFile = new File (jarFile.getPath () + ".new"); JarOutputStream output = new JarOutputStream (new FileOutputStream (newJarFile)); try { - Enumeration enum = jar.entries (); - while (enum.hasMoreElements ()) { - JarEntry entry = (JarEntry) enum.nextElement (); + Enumeration e = jar.entries (); + while (e.hasMoreElements ()) { + JarEntry entry = (JarEntry) e.nextElement (); if (!entry.isDirectory ()) { String className = entry.getName (); if (className.endsWith (SUFFIX)) { 1.2 +4 -4 jakarta-commons/attributes/compiler/src/java/org/apache/commons/attributes/validation/AttributeValidatorTask.java Index: AttributeValidatorTask.java =================================================================== RCS file: /home/cvs/jakarta-commons/attributes/compiler/src/java/org/apache/commons/attributes/validation/AttributeValidatorTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AttributeValidatorTask.java 6 Jul 2004 20:42:09 -0000 1.1 +++ AttributeValidatorTask.java 26 Jan 2005 15:54:19 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 The Apache Software Foundation + * Copyright 2003-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -143,9 +143,9 @@ JarFile jar = new JarFile (jarFile); try { - Enumeration enum = jar.entries (); - while (enum.hasMoreElements ()) { - JarEntry entry = (JarEntry) enum.nextElement (); + Enumeration e = jar.entries (); + while (e.hasMoreElements ()) { + JarEntry entry = (JarEntry) e.nextElement (); if (!entry.isDirectory ()) { String className = entry.getName (); if (className.endsWith (SUFFIX)) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]