Permalink
Browse files

Expose default instance of DefaultFieldParser and LenientFieldParser …

…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...
1 parent 8ab9362 commit 5356dcc0f026b0417ae9d826d6447d9be9426ebc @ok2c ok2c committed Dec 15, 2011
@@ -50,14 +50,14 @@
*/
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;
}
@@ -51,14 +51,14 @@
*/
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;
}

0 comments on commit 5356dcc

Please sign in to comment.