geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: rev 54869 - in geronimo/trunk/specs: activation/src/java/javax/activation j2ee-jacc/src/java/javax/security/jacc javamail/src/test/javax/mail/internet
Date Fri, 15 Oct 2004 19:41:44 GMT
Author: jboynes
Date: Fri Oct 15 12:41:44 2004
New Revision: 54869

Modified:
   geronimo/trunk/specs/activation/src/java/javax/activation/MimeTypeParameterList.java
   geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebResourcePermission.java
   geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebUserDataPermission.java
   geronimo/trunk/specs/javamail/src/test/javax/mail/internet/InternetHeadersTest.java
Log:
remove enum

Modified: geronimo/trunk/specs/activation/src/java/javax/activation/MimeTypeParameterList.java
==============================================================================
--- geronimo/trunk/specs/activation/src/java/javax/activation/MimeTypeParameterList.java	(original)
+++ geronimo/trunk/specs/activation/src/java/javax/activation/MimeTypeParameterList.java	Fri
Oct 15 12:41:44 2004
@@ -98,9 +98,9 @@
 
     public String toString() {
         StringBuffer buf = new StringBuffer();
-        for (Enumeration enum = getNames(); enum.hasMoreElements();) {
+        for (Enumeration e = getNames(); e.hasMoreElements();) {
             buf.append(PARAMETER_SEPARATOR);
-            String name = (String) enum.nextElement();
+            String name = (String) e.nextElement();
             buf.append(name).append(NAME_VALUE_SEPARATOR).append(get(name));
         }
         return buf.toString();

Modified: geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebResourcePermission.java
==============================================================================
--- geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebResourcePermission.java
(original)
+++ geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebResourcePermission.java
Fri Oct 15 12:41:44 2004
@@ -135,10 +135,10 @@
             if (!(permission instanceof WebResourcePermission)) return false;
 
             WebResourcePermission p  = (WebResourcePermission)permission;
-            Enumeration enum = permissions.elements();
+            Enumeration e = permissions.elements();
 
-            while (enum.hasMoreElements()) {
-                if (((WebResourcePermission)enum.nextElement()).implies(p)) return true;
+            while (e.hasMoreElements()) {
+                if (((WebResourcePermission)e.nextElement()).implies(p)) return true;
             }
 
             return false;

Modified: geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebUserDataPermission.java
==============================================================================
--- geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebUserDataPermission.java
(original)
+++ geronimo/trunk/specs/j2ee-jacc/src/java/javax/security/jacc/WebUserDataPermission.java
Fri Oct 15 12:41:44 2004
@@ -157,10 +157,10 @@
             if (!(permission instanceof WebUserDataPermission)) return false;
 
             WebUserDataPermission p  = (WebUserDataPermission)permission;
-            Enumeration enum = permissions.elements();
+            Enumeration e = permissions.elements();
 
-            while (enum.hasMoreElements()) {
-                if (((WebUserDataPermission)enum.nextElement()).implies(p)) return true;
+            while (e.hasMoreElements()) {
+                if (((WebUserDataPermission)e.nextElement()).implies(p)) return true;
             }
 
             return false;

Modified: geronimo/trunk/specs/javamail/src/test/javax/mail/internet/InternetHeadersTest.java
==============================================================================
--- geronimo/trunk/specs/javamail/src/test/javax/mail/internet/InternetHeadersTest.java	(original)
+++ geronimo/trunk/specs/javamail/src/test/javax/mail/internet/InternetHeadersTest.java	Fri
Oct 15 12:41:44 2004
@@ -99,13 +99,13 @@
             (toto[0].equals(users) && toto[1].equals(developers))
                 || (toto[1].equals(users) && toto[0].equals(developers)));
 
-        Enumeration enum;
+        Enumeration e;
         boolean to1, to2, from, subject;
 
-        enum = headers.getAllHeaders();
+        e = headers.getAllHeaders();
         to1 = to2 = from = subject = false;
-        while (enum.hasMoreElements()) {
-            Header header = (Header) enum.nextElement();
+        while (e.hasMoreElements()) {
+            Header header = (Header) e.nextElement();
             to1 =
                 to1
                     || (header.getName().equals("To")
@@ -125,10 +125,10 @@
         }
         assertTrue(to1 && to2 && from && subject);
 
-        enum = headers.getAllHeaderLines();
+        e = headers.getAllHeaderLines();
         to1 = to2 = from = subject = false;
-        while (enum.hasMoreElements()) {
-            String line = (String) enum.nextElement();
+        while (e.hasMoreElements()) {
+            String line = (String) e.nextElement();
             to1 = to1 || line.equals("To: " + users);
             to2 = to2 || line.equals("To: " + developers);
             from = from || line.equals("From: " + announce);
@@ -138,10 +138,10 @@
 
         String[] fromSubject = new String[] { "From", "Subject" };
 
-        enum = headers.getMatchingHeaders(fromSubject);
+        e = headers.getMatchingHeaders(fromSubject);
         to1 = to2 = from = subject = false;
-        while (enum.hasMoreElements()) {
-            Header header = (Header) enum.nextElement();
+        while (e.hasMoreElements()) {
+            Header header = (Header) e.nextElement();
             to1 =
                 to1
                     || (header.getName().equals("To")
@@ -161,10 +161,10 @@
         }
         assertTrue(!to1 && !to2 && from && subject);
 
-        enum = headers.getMatchingHeaderLines(fromSubject);
+        e = headers.getMatchingHeaderLines(fromSubject);
         to1 = to2 = from = subject = false;
-        while (enum.hasMoreElements()) {
-            String line = (String) enum.nextElement();
+        while (e.hasMoreElements()) {
+            String line = (String) e.nextElement();
             to1 = to1 || line.equals("To: " + users);
             to2 = to2 || line.equals("To: " + developers);
             from = from || line.equals("From: " + announce);
@@ -172,10 +172,10 @@
         }
         assertTrue(!to1 && !to2 && from && subject);
 
-        enum = headers.getNonMatchingHeaders(fromSubject);
+        e = headers.getNonMatchingHeaders(fromSubject);
         to1 = to2 = from = subject = false;
-        while (enum.hasMoreElements()) {
-            Header header = (Header) enum.nextElement();
+        while (e.hasMoreElements()) {
+            Header header = (Header) e.nextElement();
             to1 =
                 to1
                     || (header.getName().equals("To")
@@ -195,10 +195,10 @@
         }
         assertTrue(to1 && to2 && !from && !subject);
 
-        enum = headers.getNonMatchingHeaderLines(fromSubject);
+        e = headers.getNonMatchingHeaderLines(fromSubject);
         to1 = to2 = from = subject = false;
-        while (enum.hasMoreElements()) {
-            String line = (String) enum.nextElement();
+        while (e.hasMoreElements()) {
+            String line = (String) e.nextElement();
             to1 = to1 || line.equals("To: " + users);
             to2 = to2 || line.equals("To: " + developers);
             from = from || line.equals("From: " + announce);

Mime
View raw message