commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r1042438 - /commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
Date Sun, 05 Dec 2010 20:42:08 GMT
Author: adrianc
Date: Sun Dec  5 20:42:07 2010
New Revision: 1042438

URL: http://svn.apache.org/viewvc?rev=1042438&view=rev
Log:
Cleaned up some compiler warnings.

Modified:
    commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java

Modified: commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
URL: http://svn.apache.org/viewvc/commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java?rev=1042438&r1=1042437&r2=1042438&view=diff
==============================================================================
--- commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
(original)
+++ commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/MiscConverters.java
Sun Dec  5 20:42:07 2010
@@ -175,7 +175,7 @@ public class MiscConverters implements C
         }
     }
 
-    public static class EnumToString extends AbstractConverter<Enum, String> {
+    public static class EnumToString extends AbstractConverter<Enum<?>, String>
{
         public EnumToString() {
             super(Enum.class, String.class);
         }
@@ -184,15 +184,15 @@ public class MiscConverters implements C
             return Enum.class.isAssignableFrom(sourceClass) && String.class.isAssignableFrom(targetClass);
         }
 
-        public String convert(Class<? extends String> targetClass, Enum obj) throws
ConversionException {
+        public String convert(Class<? extends String> targetClass, Enum<?> obj)
throws ConversionException {
             return convert(obj);
         }
 
-        public String convert(Enum obj) throws ConversionException {
+        public String convert(Enum<?> obj) throws ConversionException {
             return obj.toString();
         }
 
-        public Class<? super Enum> getSourceClass() {
+        public Class<? super Enum<?>> getSourceClass() {
             return null;
         }
     }



Mime
View raw message