james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r739880 - in /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser: EntityStates.java RecursionMode.java
Date Sun, 01 Feb 2009 23:00:33 GMT
Author: mwiederkehr
Date: Sun Feb  1 23:00:32 2009
New Revision: 739880

URL: http://svn.apache.org/viewvc?rev=739880&view=rev
Log:
PMD: Avoid modifiers which are implied by the context

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/EntityStates.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/RecursionMode.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/EntityStates.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/EntityStates.java?rev=739880&r1=739879&r2=739880&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/EntityStates.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/EntityStates.java Sun
Feb  1 23:00:32 2009
@@ -29,67 +29,67 @@
      * This token indicates, that the MIME stream has been completely
      * and successfully parsed, and no more data is available.
      */
-    public static final int T_END_OF_STREAM = -1;
+    int T_END_OF_STREAM = -1;
     /**
      * This token indicates, that the MIME stream is currently
      * at the beginning of a message.
      */
-    public static final int T_START_MESSAGE = 0;
+    int T_START_MESSAGE = 0;
     /**
      * This token indicates, that the MIME stream is currently
      * at the end of a message.
      */
-    public static final int T_END_MESSAGE = 1;
+    int T_END_MESSAGE = 1;
     /**
      * This token indicates, that a raw entity is currently being processed.
      */
-    public static final int T_RAW_ENTITY = 2;
+    int T_RAW_ENTITY = 2;
     /**
      * This token indicates, that a message parts headers are now
      * being parsed.
      */
-    public static final int T_START_HEADER = 3;
+    int T_START_HEADER = 3;
     /**
      * This token indicates, that a message parts field has now
      * been parsed. 
      */
-    public static final int T_FIELD = 4;
+    int T_FIELD = 4;
     /**
      * This token indicates, that part headers have now been
      * parsed.
      */
-    public static final int T_END_HEADER = 5;
+    int T_END_HEADER = 5;
     /**
      * This token indicates, that a multipart body is being parsed.
      */
-    public static final int T_START_MULTIPART = 6;
+    int T_START_MULTIPART = 6;
     /**
      * This token indicates, that a multipart body has been parsed.
      */
-    public static final int T_END_MULTIPART = 7;
+    int T_END_MULTIPART = 7;
     /**
      * This token indicates, that a multiparts preamble is being
      * parsed. 
      */
-    public static final int T_PREAMBLE = 8;
+    int T_PREAMBLE = 8;
     /**
      * This token indicates, that a multiparts epilogue is being
      * parsed. 
      */
-    public static final int T_EPILOGUE = 9;
+    int T_EPILOGUE = 9;
     /**
      * This token indicates, that the MIME stream is currently
      * at the beginning of a body part.
      */
-    public static final int T_START_BODYPART = 10;
+    int T_START_BODYPART = 10;
     /**
      * This token indicates, that the MIME stream is currently
      * at the end of a body part.
      */
-    public static final int T_END_BODYPART = 11;
+    int T_END_BODYPART = 11;
     /**
      * This token indicates, that an atomic entity is being parsed.
      */
-    public static final int T_BODY = 12;
+    int T_BODY = 12;
 
 }

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/RecursionMode.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/RecursionMode.java?rev=739880&r1=739879&r2=739880&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/RecursionMode.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/parser/RecursionMode.java Sun
Feb  1 23:00:32 2009
@@ -27,19 +27,19 @@
     /** 
      * Recursively parse every <code>message/rfc822</code> part 
      */
-    public static final int M_RECURSE = 0;
+    int M_RECURSE = 0;
     /**
      * Do not recurse <code>message/rfc822</code> parts 
      */
-    public static final int M_NO_RECURSE = 1;
+    int M_NO_RECURSE = 1;
     /** 
      * Parse into raw entities
      */
-    public static final int M_RAW = 2;
+    int M_RAW = 2;
     /**
      * Do not recurse <code>message/rfc822</code> parts
      * and treat multiparts as a single flat body. 
      */
-    public static final int M_FLAT = 3;
+    int M_FLAT = 3;
     
 }



Mime
View raw message