Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 49262 invoked from network); 1 Feb 2009 23:00:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2009 23:00:57 -0000 Received: (qmail 43549 invoked by uid 500); 1 Feb 2009 23:00:57 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 43527 invoked by uid 500); 1 Feb 2009 23:00:57 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 43516 invoked by uid 99); 1 Feb 2009 23:00:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 15:00:56 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 23:00:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 44E862388B05; Sun, 1 Feb 2009 23:00:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: mime4j-dev@james.apache.org From: mwiederkehr@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090201230033.44E862388B05@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 message/rfc822 part */ - public static final int M_RECURSE = 0; + int M_RECURSE = 0; /** * Do not recurse message/rfc822 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 message/rfc822 parts * and treat multiparts as a single flat body. */ - public static final int M_FLAT = 3; + int M_FLAT = 3; }