@@ -85,12 +85,12 @@ public static StructuredRecord getStructuredRecord(Schema schema, FieldList fiel
8585 FieldList subFields = field .getSubFields ();
8686
8787 if (attribute == Attribute .REPEATED ) {
88- // Process each field of the array and then add it to the StructuredRecord
88+ // Process each field of the array, then add it to the StructuredRecord
8989 List <Object > list = new ArrayList <>();
9090 List <FieldValue > fieldValueList = fieldValue .getRepeatedValue ();
9191
9292 for (FieldValue localValue : fieldValueList ) {
93- // If the field contains multiple fields then we have to process it recursively.
93+ // If the field contains multiple fields, it must be processed recursively.
9494 if (localValue .getValue () instanceof FieldValueList ) {
9595 FieldValueList localFieldValueListNoSchema = localValue .getRecordValue ();
9696 FieldValueList localFieldValueList =
@@ -105,7 +105,7 @@ public static StructuredRecord getStructuredRecord(Schema schema, FieldList fiel
105105 recordBuilder .set (fieldName , list );
106106
107107 } else if (attribute == Attribute .RECORD ) {
108- // If the field contains a Record then we need to process each field independently
108+ // If the field contains a Record, each field must be processed independently.
109109 FieldValue localValue = fieldValue ;
110110 Object value ;
111111 if (localValue .getValue () instanceof FieldValueList ) {
0 commit comments