You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dk...@apache.org on 2013/03/19 20:22:23 UTC

svn commit: r1458459 - /camel/trunk/camel-core/src/main/java/org/apache/camel/util/IntrospectionSupport.java

Author: dkulp
Date: Tue Mar 19 19:22:23 2013
New Revision: 1458459

URL: http://svn.apache.org/r1458459
Log:
Fix a problem with the use of generics that is raising a warning

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/IntrospectionSupport.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/IntrospectionSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/IntrospectionSupport.java?rev=1458459&r1=1458458&r2=1458459&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/IntrospectionSupport.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/IntrospectionSupport.java Tue Mar 19 19:22:23 2013
@@ -73,7 +73,7 @@ public final class IntrospectionSupport 
         EXCLUDED_METHODS.addAll(Arrays.asList(Proxy.class.getMethods()));
     }
 
-    private static final Set<Class> PRIMITIVE_CLASSES = new HashSet<Class>();
+    private static final Set<Class<?>> PRIMITIVE_CLASSES = new HashSet<Class<?>>();
 
     static {
         PRIMITIVE_CLASSES.add(String.class);
@@ -469,7 +469,7 @@ public final class IntrospectionSupport 
         // loop and execute the best setter method
         Exception typeConversionFailed = null;
         for (Method setter : setters) {
-            Class parameterType = setter.getParameterTypes()[0];
+            Class<?> parameterType = setter.getParameterTypes()[0];
             Object ref = value;
             // try and lookup the reference based on the method
             if (context != null && refName != null && ref == null) {