james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r736086 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/address/Group.java
Date Tue, 20 Jan 2009 20:11:14 GMT
Author: mwiederkehr
Date: Tue Jan 20 12:11:14 2009
New Revision: 736086

URL: http://svn.apache.org/viewvc?rev=736086&view=rev
Log:
enhanced for loop to iterate over list of mailboxes

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/address/Group.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/address/Group.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/address/Group.java?rev=736086&r1=736085&r2=736086&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/address/Group.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/field/address/Group.java Tue
Jan 20 12:11:14 2009
@@ -69,7 +69,8 @@
 
     @Override
     protected void doAddMailboxesTo(List<Mailbox> results) {
-        for (int i = 0; i < mailboxList.size(); i++)
-            results.add(mailboxList.get(i));
+        for (Mailbox mailbox : mailboxList) {
+            results.add(mailbox);
+        }
     }
 }



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


Mime
View raw message