Skip to content

Commit

Permalink
Expose default instance of DefaultFieldParser and LenientFieldParser …
Browse files Browse the repository at this point in the history
…as an immutable interface rather than a mutable concrete class

git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@1214720 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ok2c committed Dec 15, 2011
1 parent 8ab9362 commit 5356dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
*/ */
public class DefaultFieldParser extends DelegatingFieldParser { 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. * Gets the default instance of this class.
* *
* @return the default instance * @return the default instance
*/ */
public static DefaultFieldParser getParser() { public static FieldParser<ParsedField> getParser() {
return PARSER; return PARSER;
} }


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
*/ */
public class LenientFieldParser extends DelegatingFieldParser { 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. * Gets the default instance of this class.
* *
* @return the default instance * @return the default instance
*/ */
public static LenientFieldParser getParser() { public static FieldParser<ParsedField> getParser() {
return PARSER; return PARSER;
} }


Expand Down

0 comments on commit 5356dcc

Please sign in to comment.