james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r732051 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java
Date Tue, 06 Jan 2009 18:51:04 GMT
Author: mwiederkehr
Date: Tue Jan  6 10:51:04 2009
New Revision: 732051

URL: http://svn.apache.org/viewvc?rev=732051&view=rev
Log:
Changed Mode into a Java 5 enum because JDK 1.4 support has been dropped

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java?rev=732051&r1=732050&r2=732051&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java Tue Jan  6
10:51:04 2009
@@ -19,18 +19,6 @@
 
 package org.apache.james.mime4j.message;
 
-public class Mode {
-
-    // For Java 1.4 compatibility reasons this class is not a native Java 5
-    // enum. While Retrotranslator is capable of replacing java.lang.Enum
-    // with its own version this translation introduces a dependency on the
-    // retrotranslator-runtime and backport-util-concurrent jars.
-
-    public static final Mode STRICT_IGNORE = new Mode();
-    public static final Mode STRICT_ERROR = new Mode();
-    public static final Mode LENIENT = new Mode();
-
-    private Mode() {
-    }
-
+public enum Mode {
+    STRICT_IGNORE, STRICT_ERROR, LENIENT;
 }



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