james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1214720 - in /james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field: DefaultFieldParser.java LenientFieldParser.java
Date Thu, 15 Dec 2011 12:00:48 GMT
Author: olegk
Date: Thu Dec 15 12:00:47 2011
New Revision: 1214720

URL: http://svn.apache.org/viewvc?rev=1214720&view=rev
Log:
Expose default instance of DefaultFieldParser and LenientFieldParser as an immutable interface
rather than a mutable concrete class

Modified:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java?rev=1214720&r1=1214719&r2=1214720&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java
Thu Dec 15 12:00:47 2011
@@ -50,14 +50,14 @@ import org.apache.james.mime4j.util.Cont
  */
 public class DefaultFieldParser extends DelegatingFieldParser {
 
-    private static final DefaultFieldParser PARSER = new DefaultFieldParser();
+    private static final FieldParser<ParsedField> PARSER = new DefaultFieldParser();
 
     /**
      * Gets the default instance of this class.
      *
      * @return the default instance
      */
-    public static DefaultFieldParser getParser() {
+    public static FieldParser<ParsedField> getParser() {
         return PARSER;
     }
 

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java?rev=1214720&r1=1214719&r2=1214720&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java
Thu Dec 15 12:00:47 2011
@@ -51,14 +51,14 @@ import org.apache.james.mime4j.util.Cont
  */
 public class LenientFieldParser extends DelegatingFieldParser {
 
-    private static final LenientFieldParser PARSER = new LenientFieldParser();
+    private static final FieldParser<ParsedField> PARSER = new LenientFieldParser();
 
     /**
      * Gets the default instance of this class.
      *
      * @return the default instance
      */
-    public static LenientFieldParser getParser() {
+    public static FieldParser<ParsedField> getParser() {
         return PARSER;
     }
 



Mime
View raw message