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:51:42 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 1d7d2a304 -> 0ed845dbe


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

Branch: refs/heads/3.0.x-fixes
Commit: 0ed845dbe70783e0311ef934ed144525e7f3f705
Parents: 1d7d2a3
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:51:21 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/0ed845db/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