Be more generous in the types we accept

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-10-25 11:24:27 +00:00
parent c21e66257b
commit 509e3d2e3a
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class ExtendedMessageFormat extends MessageFormat {
private static final char QUOTE = '\'';
private String toPattern;
private final Map<String, FormatFactory> registry;
private final Map<String, ? extends FormatFactory> registry;
/**
* Create a new ExtendedMessageFormat for the default locale.
@ -120,7 +120,7 @@ public ExtendedMessageFormat(String pattern, Map<String, FormatFactory> registry
* @param registry Registry of format factories: Map<String, FormatFactory>
* @throws IllegalArgumentException in case of a bad pattern.
*/
public ExtendedMessageFormat(String pattern, Locale locale, Map<String, FormatFactory> registry) {
public ExtendedMessageFormat(String pattern, Locale locale, Map<String, ? extends FormatFactory> registry) {
super(DUMMY_PATTERN);
setLocale(locale);
this.registry = registry;