commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=829541&view=rev
Log:
Fix some raw types

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

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java?rev=829541&r1=829540&r2=829541&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
Sun Oct 25 11:26:24 2009
@@ -46,7 +46,7 @@
  */
 public class ExtendedMessageFormatTest extends TestCase {
 
-    private final Map registry = new HashMap();
+    private final Map<String, FormatFactory> registry = new HashMap<String, FormatFactory>();
 
     /**
      * Return a new test suite containing this test case.
@@ -249,7 +249,7 @@
         cal.set(2007, Calendar.JANUARY, 23);
         Object[] args = new Object[] {cal.getTime()};
         Locale[] availableLocales = DateFormat.getAvailableLocales();
-        Map registry = Collections.singletonMap("date", new OverrideShortDateFormatFactory());
+        Map<String, ? extends FormatFactory> registry = Collections.singletonMap("date",
new OverrideShortDateFormatFactory());
 
         //check the non-overridden builtins:
         checkBuiltInFormat("1: {0,date}", registry,          args, availableLocales);
@@ -299,7 +299,7 @@
      * @param args MessageFormat arguments
      * @param locales to test
      */
-    private void checkBuiltInFormat(String pattern, Map registry, Object[] args, Locale[]
locales) {
+    private void checkBuiltInFormat(String pattern, Map<String, ?> registry, Object[]
args, Locale[] locales) {
         checkBuiltInFormat(pattern, registry, args, (Locale) null);
         for (int i = 0; i < locales.length; i++) {
             checkBuiltInFormat(pattern, registry, args, locales[i]);
@@ -314,7 +314,7 @@
      * @param args Object[]
      * @param locale Locale
      */
-    private void checkBuiltInFormat(String pattern, Map registry, Object[] args, Locale locale)
{
+    private void checkBuiltInFormat(String pattern, Map<String, ?> registry, Object[]
args, Locale locale) {
         StringBuffer buffer = new StringBuffer();
         buffer.append("Pattern=[");
         buffer.append(pattern);



Mime
View raw message