| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 301f44b commit 83f3b8e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 4 | 4 | <modelVersion>4.0.0</modelVersion> | |
| 5 | 5 | <groupId>com.jsoniter</groupId> | |
| 6 | - <version>0.9.22</version> | ||
| 6 | + <version>0.9.23-SNAPSHOT</version> | ||
| 7 | 7 | <artifactId>jsoniter</artifactId> | |
| 8 | 8 | <name>json iterator</name> | |
| 9 | 9 | <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 | |
|---|---|---|---|
@@ -172,7 +172,7 @@ private Any fillCacheUntil(int target) { | |||
| 172 | 172 | if (lastParsedPos == head) { | |
| 173 | 173 | if (!CodegenAccess.readArrayStart(iter)) { | |
| 174 | 174 | lastParsedPos = tail; | |
| 175 | - return null; | ||
| 175 | + throw new IndexOutOfBoundsException(); | ||
| 176 | 176 | } | |
| 177 | 177 | Any element = iter.readAny(); | |
| 178 | 178 | cache.add(element); | |
@@ -206,7 +206,11 @@ private class LazyIterator implements Iterator<Any> { | |||
| 206 | 206 | ||
| 207 | 207 | public LazyIterator() { | |
| 208 | 208 | index = 0; | |
| 209 | - next = fillCacheUntil(index); | ||
| 209 | + try { | ||
| 210 | + next = fillCacheUntil(index); | ||
| 211 | + } catch (IndexOutOfBoundsException e) { | ||
| 212 | + next = null; | ||
| 213 | + } | ||
| 210 | 214 | } | |
| 211 | 215 | ||
| 212 | 216 | @Override | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | import java.io.IOException; | |
| 12 | 12 | ||
| 13 | 13 | /** | |
| 14 | - * byte[] <=> base64 | ||
| 14 | + * byte[] <=> base64 | ||
| 15 | 15 | */ | |
| 16 | 16 | public class Base64Support { | |
| 17 | 17 | private static boolean enabled; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments