Source:
<code>private void init(FailureCollector collector) { if (!Strings.isNullOrEmpty(excelInputreaderConfig.columnList)) { String[] columnsList = excelInputreaderConfig.columnList.split(","); inputColumns = Arrays.asList(columnsList); } if (!Strings.isNullOrEmpty(excelInputreaderConfig.columnMapping)) { String[] mappings = excelInputreaderConfig.columnMapping.split(","); for (String map : mappings) { String[] columns = map.split(":"); if (CollectionUtils.isNotEmpty(inputColumns) && !inputColumns.contains(columns[0])) { collector.addFailure( <START> String.format("Column: %s in 'Column-Label Mapping' " <END> + "must be included in 'Column To Be Extracted'", columns[0]), null) .withConfigElement(COLUMN_MAPPING, map); } else { columnMapping.put(columns[0], columns[1]); } } } if (!Strings.isNullOrEmpty(excelInputreaderConfig.outputSchema)) { String[] schemaList = excelInputreaderConfig.outputSchema.split(","); for (String schema : schemaList) { String[] columns = schema.split(":"); if (CollectionUtils.isNotEmpty(inputColumns) && !inputColumns.contains(columns[0])) { collector.addFailure( String.format("Column: %s in 'Field Name Schema Type Mapping' " + "must be included in 'Column To Be Extracted'", columns[0]), null) .withConfigElement(OUTPUT_SCHEMA, schema); } else { outputSchemaMapping.put(columns[0], columns[1]); } } } collector.getOrThrowException(); }</code><technical_language>single quotes '%s'</technical_language>

Target:
private void init(FailureCollector collector) { if (!Strings.isNullOrEmpty(excelInputreaderConfig.columnList)) { String[] columnsList = excelInputreaderConfig.columnList.split(","); inputColumns = Arrays.asList(columnsList); } if (!Strings.isNullOrEmpty(excelInputreaderConfig.columnMapping)) { String[] mappings = excelInputreaderConfig.columnMapping.split(","); for (String map : mappings) { String[] columns = map.split(":"); if (columns.length < 2 || Strings.isNullOrEmpty(columns[1])) { collector.addFailure( String.format("Column: '%s' in 'Column-Label Mapping' must have an alias specified.", columns[0]), null) .withConfigElement(COLUMN_MAPPING, map); } else if (CollectionUtils.isNotEmpty(inputColumns) && !inputColumns.contains(columns[0])) { collector.addFailure( String.format("Column: '%s' in 'Column-Label Mapping' " + "must be included in 'Column To Be Extracted'", columns[0]), null) .withConfigElement(COLUMN_MAPPING, map); } else { columnMapping.put(columns[0], columns[1]); } } } if (!Strings.isNullOrEmpty(excelInputreaderConfig.outputSchema)) { String[] schemaList = excelInputreaderConfig.outputSchema.split(","); for (String schema : schemaList) { String[] columns = schema.split(":"); if (columns.length < 2 || Strings.isNullOrEmpty(columns[1])) { collector.addFailure( String.format("Column: '%s' in 'Field Name Schema Type Mapping' must have an type.", columns[0]), null) .withConfigElement(OUTPUT_SCHEMA, schema); } else if (CollectionUtils.isNotEmpty(inputColumns) && !inputColumns.contains(columns[0])) { collector.addFailure( String.format("Column: '%s' in 'Field Name Schema Type Mapping' " + "must be included in 'Column To Be Extracted'", columns[0]), null) .withConfigElement(OUTPUT_SCHEMA, schema); } else { outputSchemaMapping.put(columns[0], columns[1]); } } } }