ObjectParser(final JsonParser jsonParser, final Class targetType, final Class keyType, final Class componentType) { this.jsonParser = jsonParser; this.ndx = jsonParser.ndx; this.path = jsonParser.path.clone(); this.targetType = targetType; this.keyType = keyType; this.componentType = componentType; }
@Override public Path clone() { CharSequence[] clonedPaths = new CharSequence[paths.length]; System.arraycopy(paths, 0, clonedPaths, 0, paths.length); return new Path(clonedPaths, index, altPath != null ? altPath.clone() : null); } }