camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: Polish the code with suggestion from Babak
Date Tue, 19 Nov 2013 02:44:26 GMT
Polish the code with suggestion from Babak


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ee40f994
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ee40f994
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ee40f994

Branch: refs/heads/master
Commit: ee40f994e79e4a8778157f5ea3b6ed38b331a7e6
Parents: 00f2b56
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Nov 19 10:44:08 2013 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Nov 19 10:44:08 2013 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java  | 2 +-
 .../org/apache/camel/component/cxf/jaxrs/CxfRsEndpointTest.java   | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ee40f994/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
index 4e736fd..1e1296b 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
@@ -393,7 +393,7 @@ public class CxfRsEndpoint extends DefaultEndpoint implements HeaderFilterStrate
         return entityProviders;
     }
     
-    public void setProviders(List<? extends Object> providers) {
+    public void setProviders(List<?> providers) {
         this.entityProviders.addAll(providers);
     }
     

http://git-wip-us.apache.org/repos/asf/camel/blob/ee40f994/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpointTest.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpointTest.java
b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpointTest.java
index 5156c77..0534f6c 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpointTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpointTest.java
@@ -80,8 +80,7 @@ public class CxfRsEndpointTest extends CamelTestSupport {
 
         CxfRsComponent component = new CxfRsComponent(context);
         CxfRsEndpoint endpoint = (CxfRsEndpoint)component.createEndpoint(endpointUri);
-        @SuppressWarnings("rawtypes")
-        JSONProvider jsonProvider = new JSONProvider();
+        JSONProvider<?> jsonProvider = new JSONProvider<Object>();
         jsonProvider.setDropRootElement(true);
         jsonProvider.setSupportUnwrapped(true);
         endpoint.setProvider(jsonProvider);


Mime
View raw message