Repository: cxf
Updated Branches:
  refs/heads/master c18450505 -> 9e8765ad4


Update getBooleanValue to read String values. This closes #171.


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

Branch: refs/heads/master
Commit: 9e8765ad46512f71f9580a6ae45f6e08242411bb
Parents: c184505
Author: Andy McCright <j.andrew.mccri...@gmail.com>
Authored: Thu Sep 15 13:55:35 2016 -0500
Committer: Colm O hEigeartaigh <cohei...@apache.org>
Committed: Fri Sep 16 10:07:39 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/9e8765ad/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
----------------------------------------------------------------------
diff --git 
a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java 
b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
index 60948df..d674b00 100644
--- 
a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
+++ 
b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
@@ -552,6 +552,6 @@ public class ClientImpl implements Client {
         return o instanceof Integer ? (Integer)o : o instanceof String ? 
Integer.valueOf(o.toString()) : null;
     }
     private static Boolean getBooleanValue(Object o) {
-        return o instanceof Boolean ? (Boolean)o : o instanceof Boolean ? 
Boolean.valueOf(o.toString()) : null;
+        return o instanceof Boolean ? (Boolean)o : o instanceof String ? 
Boolean.valueOf(o.toString()) : null;
     }
 }

Reply via email to