cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5988] Checking for Date when extracting values from parameter beans
Date Fri, 05 Sep 2014 21:22:18 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes c15d77242 -> 065c4573a


[CXF-5988] Checking for Date when extracting values from parameter beans


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

Branch: refs/heads/2.7.x-fixes
Commit: 065c4573a3da318d86c20cbd63718d192d7774db
Parents: c15d772
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Fri Sep 5 22:19:10 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Fri Sep 5 22:21:56 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/065c4573/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
index 95f629e..84461b4 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
@@ -1152,7 +1152,7 @@ public final class InjectionUtils {
                 if (value == null) {
                     continue;
                 }
-                if (isPrimitive(value.getClass())) {
+                if (isPrimitive(value.getClass()) || Date.class.isAssignableFrom(value.getClass()))
{
                     values.putSingle(propertyName, value);
                 } else if (value.getClass().isEnum()) {
                     values.putSingle(propertyName, value.toString());


Mime
View raw message