Source:
<code>private void buildGettersForPojoPayload() { Class payloadClass = getTuplePayloadClass(); checkNotNull(payloadClass,"Payload class cannot be null"); Field[] classFields = payloadClass.getDeclaredFields(); Schema schemaInfo = kuduTable.getSchema(); List<ColumnSchema> allColumns = schemaInfo.getColumns(); Set<String> allKuduTableColumnNames = new HashSet<>(); Map<String,ColumnSchema> normalizedColumns = new HashMap(); for ( ColumnSchema aColumnDef : allColumns) { allColumnDefs.put(aColumnDef.getName(), aColumnDef); normalizedColumns.put(aColumnDef.getName().toLowerCase(), aColumnDef); allKuduTableColumnNames.add(aColumnDef.getName().toLowerCase()); } List<ColumnSchema> primaryKeyColumns = schemaInfo.getPrimaryKeyColumns(); for (ColumnSchema primaryKeyInfo : primaryKeyColumns) { primaryKeyColumnNames.add(primaryKeyInfo.getName()); } Map<String,String> columnNameOverrides = getOverridingColumnNameMap(); if (columnNameOverrides == null) { columnNameOverrides = new HashMap(); } for ( Field aFieldDef : classFields) { String currentFieldName = aFieldDef.getName().toLowerCase(); if (allKuduTableColumnNames.contains(currentFieldName)) { extractGetterForColumn(normalizedColumns.get(currentFieldName),aFieldDef); } else { if (columnNameOverrides.containsKey(aFieldDef.getName())) { extractGetterForColumn(normalizedColumns.get(columnNameOverrides.get(aFieldDef.getName()).toLowerCase()), aFieldDef); } <START> if (columnNameOverrides.containsKey(aFieldDef.getName().toLowerCase())) { <END> extractGetterForColumn(normalizedColumns.get(columnNameOverrides.get(aFieldDef.getName().toLowerCase()) .toLowerCase()),aFieldDef); } } } }</code><technical_language>else if ?? If aFieldDef.getName() == aFieldDef.getName().toLowerCase() getter created twice</technical_language>

Target:
private void buildGettersForPojoPayload() { Class payloadClass = getTuplePayloadClass(); checkNotNull(payloadClass,"Payload class cannot be null"); Field[] classFields = payloadClass.getDeclaredFields(); Schema schemaInfo = kuduTable.getSchema(); List<ColumnSchema> allColumns = schemaInfo.getColumns(); Set<String> allKuduTableColumnNames = new HashSet<>(); Map<String,ColumnSchema> normalizedColumns = new HashMap(); for ( ColumnSchema aColumnDef : allColumns) { allColumnDefs.put(aColumnDef.getName(), aColumnDef); normalizedColumns.put(aColumnDef.getName().toLowerCase(), aColumnDef); allKuduTableColumnNames.add(aColumnDef.getName().toLowerCase()); } List<ColumnSchema> primaryKeyColumns = schemaInfo.getPrimaryKeyColumns(); for (ColumnSchema primaryKeyInfo : primaryKeyColumns) { primaryKeyColumnNames.add(primaryKeyInfo.getName()); } Map<String,String> columnNameOverrides = getOverridingColumnNameMap(); if (columnNameOverrides == null) { columnNameOverrides = new HashMap(); } for ( Field aFieldDef : classFields) { String currentFieldName = aFieldDef.getName().toLowerCase(); if (allKuduTableColumnNames.contains(currentFieldName)) { extractGetterForColumn(normalizedColumns.get(currentFieldName),aFieldDef); } else { if (columnNameOverrides.containsKey(aFieldDef.getName())) { extractGetterForColumn(normalizedColumns.get(columnNameOverrides.get(aFieldDef.getName()).toLowerCase()), aFieldDef); } else if (columnNameOverrides.containsKey(aFieldDef.getName().toLowerCase())) { extractGetterForColumn(normalizedColumns.get(columnNameOverrides.get(aFieldDef.getName().toLowerCase()) .toLowerCase()),aFieldDef); } } } }