james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r735406 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/util/CharsetUtil.java
Date Sun, 18 Jan 2009 09:21:22 GMT
Author: mwiederkehr
Date: Sun Jan 18 01:21:21 2009
New Revision: 735406

URL: http://svn.apache.org/viewvc?rev=735406&view=rev
Log:
inferred generics into code to generate html table of known charsets

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/util/CharsetUtil.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/util/CharsetUtil.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/util/CharsetUtil.java?rev=735406&r1=735405&r2=735406&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/util/CharsetUtil.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/util/CharsetUtil.java Sun Jan
18 01:21:21 2009
@@ -1146,7 +1146,7 @@
     
     /*
     private static String dumpHtmlTable() {
-        LinkedList l = new LinkedList(Arrays.asList(JAVA_CHARSETS));
+        List<Charset> l = new LinkedList<Charset>(Arrays.asList(JAVA_CHARSETS));
         Collections.sort(l);
         StringBuilder sb = new StringBuilder();
         sb.append(" * <table>\n");
@@ -1156,8 +1156,7 @@
         sb.append(" *         <td>Aliases</td>\n");
         sb.append(" *     </tr>\n");
 
-        for (Iterator it = l.iterator(); it.hasNext();) {
-            Charset c = (Charset) it.next();
+        for (Charset c : l) {
             sb.append(" *     <tr>\n");
             sb.append(" *         <td>" + c.canonical + "</td>\n");
             sb.append(" *         <td>" + (c.mime == null ? "?" : c.mime)+ "</td>\n");
@@ -1174,5 +1173,6 @@
     
     public static void main(String[] args) {
         System.out.println(dumpHtmlTable());
-    }*/
-}
+    }
+    */
+}
\ No newline at end of file



---------------------------------------------------------------------
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