james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r836403 - /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
Date Sun, 15 Nov 2009 20:15:30 GMT
Author: mwiederkehr
Date: Sun Nov 15 20:15:30 2009
New Revision: 836403

URL: http://svn.apache.org/viewvc?rev=836403&view=rev
Log:
Use upper case for private static final variables.

Modified:
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java?rev=836403&r1=836402&r2=836403&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
Sun Nov 15 20:15:30 2009
@@ -35,7 +35,7 @@
     private static final Pattern FIELD_NAME_PATTERN = Pattern
             .compile("^([\\x21-\\x39\\x3b-\\x7e]+):");
 
-    private static final DefaultFieldParser parser = new DefaultFieldParser();
+    private static final DefaultFieldParser PARSER = new DefaultFieldParser();
     
     private final String name;
     private final String body;
@@ -96,7 +96,7 @@
      * @return the default field parser
      */
     public static DefaultFieldParser getParser() {
-        return parser;
+        return PARSER;
     }
     
     /**
@@ -168,7 +168,7 @@
             body = body.substring(1);
         }
 
-        return parser.parse(name, body, raw);
+        return PARSER.parse(name, body, raw);
     }
 
 }



Mime
View raw message