Skip to content

Commit 83f3b8e

Browse files
committed
fix #188 fix build
1 parent 301f44b commit 83f3b8e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.22</version>
6+
<version>0.9.23-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>

src/main/java/com/jsoniter/any/ArrayLazyAny.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private Any fillCacheUntil(int target) {
172172
if (lastParsedPos == head) {
173173
if (!CodegenAccess.readArrayStart(iter)) {
174174
lastParsedPos = tail;
175-
return null;
175+
throw new IndexOutOfBoundsException();
176176
}
177177
Any element = iter.readAny();
178178
cache.add(element);
@@ -206,7 +206,11 @@ private class LazyIterator implements Iterator<Any> {
206206

207207
public LazyIterator() {
208208
index = 0;
209-
next = fillCacheUntil(index);
209+
try {
210+
next = fillCacheUntil(index);
211+
} catch (IndexOutOfBoundsException e) {
212+
next = null;
213+
}
210214
}
211215

212216
@Override

src/main/java/com/jsoniter/extra/Base64Support.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import java.io.IOException;
1212

1313
/**
14-
* byte[] <=> base64
14+
* byte[] &lt;=&gt; base64
1515
*/
1616
public class Base64Support {
1717
private static boolean enabled;

0 commit comments

Comments
 (0)