This repository was archived by the owner on Feb 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
33 <modelVersion >4.0.0</modelVersion >
44 <groupId >com.jsoniter</groupId >
5- <version >0.9.4 -SNAPSHOT</version >
5+ <version >0.9.5 -SNAPSHOT</version >
66 <artifactId >jsoniter-demo</artifactId >
77 <name >json iterator</name >
88 <description >jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go</description >
Original file line number Diff line number Diff line change 33 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
44 <modelVersion >4.0.0</modelVersion >
55 <groupId >com.jsoniter</groupId >
6- <version >0.9.4 </version >
6+ <version >0.9.5-SNAPSHOT </version >
77 <artifactId >jsoniter</artifactId >
88 <name >json iterator</name >
99 <description >jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go</description >
Original file line number Diff line number Diff line change 44
55import java .lang .reflect .Type ;
66import java .util .*;
7+ import java .util .zip .CRC32 ;
78
89class CodegenImplObject {
910
Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ final static byte nextToken(JsonIterator iter) throws IOException {
138138 switch (c ) {
139139 case ' ' :
140140 case '\n' :
141- case '\t' :
142141 case '\r' :
142+ case '\t' :
143143 continue ;
144144 default :
145145 if (i > iter .tail ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public void test_empty_object() throws IOException {
3737 }
3838
3939 public void test_one_field () throws IOException {
40- JsonIterator iter = JsonIterator .parse ("{ 'field1' : 'hello' }" .replace ('\'' , '"' ));
40+ JsonIterator iter = JsonIterator .parse ("{ 'field1'\r : \n \t 'hello' }" .replace ('\'' , '"' ));
4141 assertEquals ("field1" , iter .readObject ());
4242 assertEquals ("hello" , iter .readString ());
4343 assertNull (iter .readObject ());
You can’t perform that action at this time.
0 commit comments