cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Fixing an issue with JsonMapObject parser not parsing an array of primitive values correctly
Date Mon, 20 Oct 2014 10:50:36 GMT
Repository: cxf
Updated Branches:
  refs/heads/master d1e764dcf -> 60af4863f


Fixing an issue with JsonMapObject parser not parsing an array of primitive values correctly


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

Branch: refs/heads/master
Commit: 60af4863f8949fc697f4ecd98a3f95303a56ebcb
Parents: d1e764d
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Mon Oct 20 11:50:14 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Mon Oct 20 11:50:14 2014 +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/60af4863/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 0c68705..604abfe 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
@@ -175,7 +175,7 @@ public class JsonMapObjectReaderWriter {
                 int commaIndex = getCommaIndex(json, i);
                 Object value = readPrimitiveValue(name, json, i, commaIndex);
                 values.add(value);
-                i = commaIndex + 1;
+                i = commaIndex;
             }
         }
         


Mime
View raw message