cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5749] Removing the unused method parameter
Date Wed, 21 May 2014 09:39:36 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 6b4598644 -> 7553e8420


[CXF-5749] Removing the unused method parameter


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

Branch: refs/heads/master
Commit: 7553e8420efb44f974fd02531597c0e610ecfacc
Parents: 6b45986
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed May 21 10:39:13 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed May 21 10:39:13 2014 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/7553e842/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
index d728548..91c7f0d 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
@@ -166,7 +166,7 @@ public class ClientProxyImpl extends AbstractClient implements
         
         List<Object> pathParams = getPathParamValues(m, params, types, beanParamsList,
ori);
         
-        int bodyIndex = getBodyIndex(types, ori, params);
+        int bodyIndex = getBodyIndex(types, ori);
         
         UriBuilder builder = getCurrentBuilder().clone(); 
         if (isRoot) {
@@ -278,8 +278,7 @@ public class ClientProxyImpl extends AbstractClient implements
     }
     
     private static int getBodyIndex(MultivaluedMap<ParameterType, Parameter> map, 
-                                    OperationResourceInfo ori,
-                                    Object[] params) {
+                                    OperationResourceInfo ori) {
         List<Parameter> list = map.get(ParameterType.REQUEST_BODY);
         int index = list == null || list.size() > 1 ? -1 : list.get(0).getIndex();
         if (ori.isSubResourceLocator() && index != -1) {


Mime
View raw message