[logback-dev] svn commit: r1934 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi

noreply.ceki at qos.ch noreply.ceki at qos.ch
Mon Nov 3 20:48:26 CET 2008


Author: ceki
Date: Mon Nov  3 20:48:25 2008
New Revision: 1934

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/PropertySetter.java

Log:
- keep the compiler spew less warnings

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/PropertySetter.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/PropertySetter.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/spi/PropertySetter.java	Mon Nov  3 20:48:25 2008
@@ -426,7 +426,7 @@
   /**
    * Convert <code>val</code> a String parameter to an object of a given type.
    */
-  protected Object convertArg(String val, Class type) {
+  protected Object convertArg(String val, Class<?> type) {
     if (val == null) {
       return null;
     }
@@ -472,7 +472,7 @@
     return false;
   }
 
-  Object buildFromString(Class type, String val) {
+  Object buildFromString(Class<?> type, String val) {
     try {
       Method valueOfMethod = type.getMethod(CoreConstants.VALUE_OF,
           STING_CLASS_PARAMETER);
@@ -485,7 +485,7 @@
     }
   }
 
-  protected Object convertEnum(String val, Class type) {
+  protected Object convertEnum(String val, Class<?> type) {
     try {
       Method m = type.getMethod(CoreConstants.VALUE_OF, STING_CLASS_PARAMETER);
       return m.invoke(null, val);


More information about the logback-dev mailing list