james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r718073 - in /james/mime4j/trunk/src/main/java/org/apache/james/mime4j: MimeIOException.java message/Header.java message/Mode.java parser/MimeEntityConfig.java
Date Sun, 16 Nov 2008 18:32:24 GMT
Author: olegk
Date: Sun Nov 16 10:32:24 2008
New Revision: 718073

URL: http://svn.apache.org/viewvc?rev=718073&view=rev
Log:
MIME4J-86: Javadoc fixes

Contributed by Markus Wiederkehr <markus.wiederkehr at gmail.com> 

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Mode.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java?rev=718073&r1=718072&r2=718073&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java Sun Nov
16 10:32:24 2008
@@ -29,7 +29,7 @@
     /**
      * Constructs an IO exception based on {@link MimeException}.
      *
-     * @param ex cause
+     * @param cause the cause.
      */
     public MimeIOException(MimeException cause) {
         super(cause.getMessage());

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java?rev=718073&r1=718072&r2=718073&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java Sun Nov 16
10:32:24 2008
@@ -228,19 +228,19 @@
      * Compatibility mode:
      * <ul>
      *  <li>
-     *   {@link MessageUtils#LENIENT}: use charset of the Content-Type header
+     *   {@link Mode#LENIENT}: use charset of the Content-Type header
      *  </li>
      *  <li>
-     *   {@link MessageUtils#STRICT_ERROR}: use US-ASCII and throw {@link MimeException}

+     *   {@link Mode#STRICT_ERROR}: use US-ASCII and throw {@link MimeException} 
      *    if a non ASCII character is encountered
      *   </li>
      *  <li>
-     *   {@link MessageUtils#STRICT_ERROR}: ignore non ASCII characters if encountered
+     *   {@link Mode#STRICT_ERROR}: ignore non ASCII characters if encountered
      *   </li>
      * </ul>
      * @param out the OutputStream to write to
      * @param mode compatibility mode:
-     *   {@link MessageUtils#LENIENT}, {@link MessageUtils#STRICT_ERROR}, {@link MessageUtils#STRICT_IGNORE}
 
+     *   {@link Mode#LENIENT}, {@link Mode#STRICT_ERROR}, {@link Mode#STRICT_IGNORE}  
      * 
      * @throws IOException if case of an I/O error
      * @throws MimeException if case of a MIME protocol violation

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=718073&r1=718072&r2=718073&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 Sun Nov 16
10:32:24 2008
@@ -21,8 +21,10 @@
 
 public class Mode {
 
-    // because of a problem with the retrotranslator maven plugin this class
-    // uses the old typesafe enum pattern instead of a native Java 5 enum
+    // 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();

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java?rev=718073&r1=718072&r2=718073&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
(original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
Sun Nov 16 10:32:24 2008
@@ -117,12 +117,12 @@
     }
 
     /**
-     * Sets the maximum line length limit. Parsing of a MIME entity will be terminated 
+     * Sets the maximum content length limit. Parsing of a MIME entity will be terminated

      * with a {@link MimeException} if a content body exceeds the maximum length limit. 
      * If this parameter is set to a non positive value the content length
      * check will be disabled.
      * 
-     * @param maxLineLen maximum line length limit
+     * @param maxContentLen maximum content length limit
      */
     public void setMaxContentLen(long maxContentLen) {
         this.maxContentLen = maxContentLen;



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