commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r829540 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
Date Sun, 25 Oct 2009 11:24:27 GMT
Author: sebb
Date: Sun Oct 25 11:24:27 2009
New Revision: 829540

URL: http://svn.apache.org/viewvc?rev=829540&view=rev
Log:
Be more generous in the types we accept

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java?rev=829540&r1=829539&r2=829540&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
Sun Oct 25 11:24:27 2009
@@ -78,7 +78,7 @@
     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 @@
      * @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;



Mime
View raw message