/** * INTERNAL: * Build the nested row. */ @Override public AbstractRecord buildNestedRowFromFieldValue(Object fieldValue) { if (fieldValue instanceof AbstractRecord) { return (AbstractRecord)fieldValue; } // BUG#2667762 if the tag was empty this could be a string of whitespace. if (!(fieldValue instanceof List)) { return getObjectBuilder().createRecord(0, null); } List nestedRows = (List)fieldValue; if (nestedRows.isEmpty()) { return getObjectBuilder().createRecord(0, null); } else { // BUG#2667762 if the tag was empty this could be a string of whitespace. if (!(nestedRows.get(0) instanceof AbstractRecord)) { return getObjectBuilder().createRecord(0, null); } return (AbstractRecord)nestedRows.get(0); } }
/** * INTERNAL: * Build the nested row. */ @Override public AbstractRecord buildNestedRowFromFieldValue(Object fieldValue) { if (fieldValue instanceof AbstractRecord) { return (AbstractRecord)fieldValue; } // BUG#2667762 if the tag was empty this could be a string of whitespace. if (!(fieldValue instanceof List)) { return getObjectBuilder().createRecord(0, null); } List nestedRows = (List)fieldValue; if (nestedRows.isEmpty()) { return getObjectBuilder().createRecord(0, null); } else { // BUG#2667762 if the tag was empty this could be a string of whitespace. if (!(nestedRows.get(0) instanceof AbstractRecord)) { return getObjectBuilder().createRecord(0, null); } return (AbstractRecord)nestedRows.get(0); } }
return getObjectBuilder().createRecord(null); return getObjectBuilder().createRecord(null); } else { return getObjectBuilder().createRecord(null);