use of com.alibaba.fastjson.parser.deserializer.CollectionResolveFieldDeserializer in project uavstack by uavorg.
the class DefaultJSONParser method checkListResolve.
@SuppressWarnings("rawtypes")
public void checkListResolve(Collection array) {
if (resolveStatus == NeedToResolve) {
if (array instanceof List) {
final int index = array.size() - 1;
final List list = (List) array;
ResolveTask task = getLastResolveTask();
task.setFieldDeserializer(new ListResolveFieldDeserializer(this, list, index));
task.setOwnerContext(context);
setResolveStatus(DefaultJSONParser.NONE);
} else {
ResolveTask task = getLastResolveTask();
task.setFieldDeserializer(new CollectionResolveFieldDeserializer(this, array));
task.setOwnerContext(context);
setResolveStatus(DefaultJSONParser.NONE);
}
}
}
Aggregations