james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1092590 - /james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
Date Fri, 15 Apr 2011 04:57:52 GMT
Author: felixk
Date: Fri Apr 15 04:57:52 2011
New Revision: 1092590

URL: http://svn.apache.org/viewvc?rev=1092590&view=rev
Log:
Performance improvement

Modified:
    james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java

Modified: james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java?rev=1092590&r1=1092589&r2=1092590&view=diff
==============================================================================
--- james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
(original)
+++ james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
Fri Apr 15 04:57:52 2011
@@ -300,9 +300,8 @@ public class MessageTree extends JPanel 
                 ContentTypeField field = (ContentTypeField) o;
                 StringBuilder sb = new StringBuilder();
                 sb.append("MIME type: " + field.getMimeType() + "\n");
-                Map<String, String> params = field.getParameters();
-                for (String name : params.keySet()) {
-                    sb.append(name + " = " + params.get(name) + "\n");
+                for (Map.Entry<String, String> entry : field.getParameters().entrySet())
{ 
+                    sb.append(entry.getKey() + " = " + entry.getValue() + "\n");
                 }
                 textView.setText(sb.toString());
 



Mime
View raw message