camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [7/9] git commit: Don't use a class that's been deprecated for 2 years.
Date Mon, 06 Jan 2014 18:54:39 GMT
Don't use a class that's been deprecated for 2 years.


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

Branch: refs/heads/master
Commit: 6b4d32c8e27afbcc156867120f6fda60f4a2f30f
Parents: 7d4e623
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Jan 6 12:12:58 2014 -0500
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jan 6 12:12:58 2014 -0500

----------------------------------------------------------------------
 .../java/org/apache/camel/component/cxf/DefaultCxfBinding.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6b4d32c8/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
index f0dcc6d..346dd63 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
@@ -67,6 +67,7 @@ import org.apache.cxf.message.MessageContentsList;
 import org.apache.cxf.message.MessageUtils;
 import org.apache.cxf.security.SecurityContext;
 import org.apache.cxf.service.Service;
+import org.apache.cxf.service.invoker.MethodDispatcher;
 import org.apache.cxf.service.model.BindingMessageInfo;
 import org.apache.cxf.service.model.BindingOperationInfo;
 import org.apache.cxf.service.model.MessagePartInfo;
@@ -193,10 +194,7 @@ public class DefaultCxfBinding implements CxfBinding, HeaderFilterStrategyAware
         if (boi != null) {
             Service service = cxfExchange.get(Service.class); 
             if (service != null) {
-                @SuppressWarnings("deprecation")
-                org.apache.cxf.frontend.MethodDispatcher md 
-                    = (org.apache.cxf.frontend.MethodDispatcher)service
-                        .get(org.apache.cxf.frontend.MethodDispatcher.class.getName());
+                MethodDispatcher md = (MethodDispatcher)service.get(MethodDispatcher.class.getName());
                 if (md != null) {
                     method = md.getMethod(boi);
                 }


Mime
View raw message