Parsing a deeply nested json might fail

This commit is contained in:
kimchy 2010-11-09 10:26:15 +02:00
parent 33ff95af05
commit b5f1a1b49c
1 changed files with 2 additions and 2 deletions

View File

@ -64,12 +64,12 @@ public class ContentPath {
}
public void add(String name) {
if (index == path.length) { // resize
path[index++] = name;
if (index == path.length) { // expand if needed
String[] newPath = new String[path.length + 10];
System.arraycopy(path, 0, newPath, 0, path.length);
path = newPath;
}
path[index++] = name;
}
public void remove() {