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:
parent
c21e66257b
commit
509e3d2e3a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue