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/3205c9f8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3205c9f8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3205c9f8

Branch: refs/heads/3.0.x-fixes
Commit: 3205c9f8d65588204c2daf2f5c96c67217bfee01
Parents: 48e30c7
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:11:41 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/3205c9f8/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