cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Using bean param method annotations
Date Tue, 11 Mar 2014 11:58:03 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 7a39f287e -> bc8f7509d


Using bean param method annotations


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

Branch: refs/heads/2.7.x-fixes
Commit: bc8f7509df3b556f39804adf1c19b5d40eadb050
Parents: 7a39f28
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Mar 11 11:44:38 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Mar 11 11:57:41 2014 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/bc8f7509/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
index d904840..11b244d 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
@@ -479,7 +479,7 @@ public class ClientProxyImpl extends AbstractClient implements
                     Method getter = bean.getClass().getMethod("get" + propertyName, new Class[]{});
                     Object value = getter.invoke(bean, new Object[]{});
                     String annotationValue = AnnotationUtils.getAnnotationValue(annotation);
-                    values.put(annotationValue, new BeanPair(value, m.getParameterAnnotations()[0]));
+                    values.put(annotationValue, new BeanPair(value, m.getAnnotations()));
                 } catch (Throwable t) {
                     // ignore
                 }


Mime
View raw message