commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r829398 - in /commons/proper/lang/trunk/src/test/org/apache/commons/lang: text/ExtendedMessageFormatTest.java text/StrBuilderAppendInsertTest.java time/DateFormatUtilsTest.java
Date Sat, 24 Oct 2009 16:17:13 GMT
Author: sebb
Date: Sat Oct 24 16:17:13 2009
New Revision: 829398

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

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateFormatUtilsTest.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=829398&r1=829397&r2=829398&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
Sat Oct 24 16:17:13 2009
@@ -114,13 +114,13 @@
         String extendedPattern = "Name: {0,upper} ";
         String pattern = extendedPattern + builtinsPattern;
 
-        HashSet testLocales = new HashSet();
+        HashSet<Locale> testLocales = new HashSet<Locale>();
         testLocales.addAll(Arrays.asList(DateFormat.getAvailableLocales()));
         testLocales.retainAll(Arrays.asList(NumberFormat.getAvailableLocales()));
         testLocales.add(null);
 
-        for (Iterator l = testLocales.iterator(); l.hasNext();) {
-            Locale locale = (Locale) l.next();
+        for (Iterator<Locale> l = testLocales.iterator(); l.hasNext();) {
+            Locale locale = l.next();
             MessageFormat builtins = createMessageFormat(builtinsPattern, locale);
             String expectedPattern = extendedPattern + builtins.toPattern();
             DateFormat df = null;

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java?rev=829398&r1=829397&r2=829398&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
Sat Oct 24 16:17:13 2009
@@ -875,7 +875,7 @@
     //-----------------------------------------------------------------------
     public void testAppendAll_Collection() {
         StrBuilder sb = new StrBuilder();
-        sb.appendAll((Collection) null);
+        sb.appendAll((Collection<?>) null);
         assertEquals("", sb.toString());
 
         sb.clear();
@@ -890,7 +890,7 @@
     //-----------------------------------------------------------------------
     public void testAppendAll_Iterator() {
         StrBuilder sb = new StrBuilder();
-        sb.appendAll((Iterator) null);
+        sb.appendAll((Iterator<?>) null);
         assertEquals("", sb.toString());
 
         sb.clear();
@@ -928,7 +928,7 @@
     //-----------------------------------------------------------------------
     public void testAppendWithSeparators_Collection() {
         StrBuilder sb = new StrBuilder();
-        sb.appendWithSeparators((Collection) null, ",");
+        sb.appendWithSeparators((Collection<?>) null, ",");
         assertEquals("", sb.toString());
 
         sb.clear();
@@ -951,7 +951,7 @@
     //-----------------------------------------------------------------------
     public void testAppendWithSeparators_Iterator() {
         StrBuilder sb = new StrBuilder();
-        sb.appendWithSeparators((Iterator) null, ",");
+        sb.appendWithSeparators((Iterator<?>) null, ",");
         assertEquals("", sb.toString());
 
         sb.clear();

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateFormatUtilsTest.java?rev=829398&r1=829397&r2=829398&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateFormatUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateFormatUtilsTest.java
Sat Oct 24 16:17:13 2009
@@ -55,7 +55,7 @@
     //-----------------------------------------------------------------------
     public void testConstructor() {
         assertNotNull(new DateFormatUtils());
-        Constructor[] cons = DateFormatUtils.class.getDeclaredConstructors();
+        Constructor<?>[] cons = DateFormatUtils.class.getDeclaredConstructors();
         assertEquals(1, cons.length);
         assertEquals(true, Modifier.isPublic(cons[0].getModifiers()));
         assertEquals(true, Modifier.isPublic(DateFormatUtils.class.getModifiers()));



Mime
View raw message