cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor update to JsonMapObjectReaderWriter
Date Tue, 16 Jun 2015 11:40:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 86e1312f7 -> 0bf06d583


Minor update to JsonMapObjectReaderWriter


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

Branch: refs/heads/master
Commit: 0bf06d5831ad7979006f9af3b0071143593004d1
Parents: 86e1312
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Jun 16 12:39:57 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Jun 16 12:39:57 2015 +0100

----------------------------------------------------------------------
 .../apache/cxf/jaxrs/provider/json/JsonMapObjectReaderWriter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/0bf06d58/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/json/JsonMapObjectReaderWriter.java
----------------------------------------------------------------------
diff --git a/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/json/JsonMapObjectReaderWriter.java
b/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/json/JsonMapObjectReaderWriter.java
index 71fae6c..827d266 100644
--- a/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/json/JsonMapObjectReaderWriter.java
+++ b/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/json/JsonMapObjectReaderWriter.java
@@ -210,7 +210,7 @@ public class JsonMapObjectReaderWriter {
         String valueStr = value.toString().trim(); 
         if (valueStr.startsWith("\"")) {
             value = valueStr.substring(1, valueStr.length() - 1);
-        } else if ("true".equals(value) || "false".equals(value)) {
+        } else if ("true".equals(valueStr) || "false".equals(valueStr)) {
             value = Boolean.valueOf(valueStr);
         } else {
             try {


Mime
View raw message