Source:
<code>int fillData(HSSFSheet sheet, int rowNum, HSSFCellStyle style) { logger.entering(new Object[] { sheet, rowNum, style }); HSSFRow row; HSSFCell col; for (List<String> dataString : this.getLstEntities()) { for (String output : dataString) { String[] outputLines = output.split(":", 2); String outputColumn = outputLines[0]; String outputValue = (outputLines.length > 1) ? outputLines[1].trim() : output.trim(); int colNum = iStartColNum; row = sheet.createRow(rowNum); col = row.createCell(colNum); col.setCellStyle(Styles.getSubHeading2StyleThinBorder()); <START> if (outputLines.length > 1) { <END> col.setCellValue(outputColumn); } else { col.setCellValue(""); } colNum += 1; col = row.createCell(colNum); HSSFCellStyle rightCellStyle = (0 == dataString.indexOf(output)) ? Styles .getSubHeading2StyleThinBorder() : Styles.getStyleBorderThinLeftTop(); col.setCellStyle(rightCellStyle); if (outputValue.startsWith("file:")) { Hyperlink link = new HSSFHyperlink(Hyperlink.LINK_FILE); link.setAddress(outputValue); col.setCellStyle(Styles.getHyperLinkStyle()); col.setCellValue(outputValue); col.setHyperlink(link); } else if (outputValue.startsWith("http:") || outputValue.startsWith("https:")) { Hyperlink link = new HSSFHyperlink(Hyperlink.LINK_URL); link.setAddress(outputValue); col.setCellStyle(Styles.getHyperLinkStyle()); col.setCellValue(outputValue); col.setHyperlink(link); } else { col.setCellValue(outputValue); } rowNum += 1; } rowNum += 1; } sheet.autoSizeColumn(iStartColNum); sheet.autoSizeColumn(iStartColNum + 1); logger.exiting(rowNum); return rowNum; }</code><technical_language>changed String cellValue=""; if (outputLines.length > 1) { cellValue=outputColumn; } col.setCellValue(cellValue);</technical_language>

Target:
int fillData(HSSFSheet sheet, int rowNum, HSSFCellStyle style) { logger.entering(new Object[] { sheet, rowNum, style }); HSSFRow row; HSSFCell col; for (List<String> dataString : this.getLstEntities()) { for (String output : dataString) { String[] outputLines = output.split(":", 2); String outputColumn = (outputLines.length > 1) ? outputLines[0] : ""; String outputValue = (outputLines.length > 1) ? outputLines[1].trim() : output.trim(); int colNum = iStartColNum; row = sheet.createRow(rowNum); col = row.createCell(colNum); col.setCellStyle(Styles.getSubHeading2StyleThinBorder()); col.setCellValue(outputColumn); colNum += 1; col = row.createCell(colNum); HSSFCellStyle rightCellStyle = (0 == dataString.indexOf(output)) ? Styles .getSubHeading2StyleThinBorder() : Styles.getStyleBorderThinLeftTop(); col.setCellStyle(rightCellStyle); if (outputValue.startsWith("file:") && (!SystemUtils.IS_OS_MAC)) { Hyperlink link = new HSSFHyperlink(Hyperlink.LINK_FILE); link.setAddress(outputValue); col.setCellStyle(Styles.getHyperLinkStyle()); col.setCellValue(outputValue); col.setHyperlink(link); } else if (outputValue.startsWith("http:") || outputValue.startsWith("https:")) { Hyperlink link = new HSSFHyperlink(Hyperlink.LINK_URL); link.setAddress(outputValue); col.setCellStyle(Styles.getHyperLinkStyle()); col.setCellValue(outputValue); col.setHyperlink(link); } else { col.setCellValue(outputValue); } rowNum += 1; } rowNum += 1; } sheet.autoSizeColumn(iStartColNum); sheet.autoSizeColumn(iStartColNum + 1); logger.exiting(rowNum); return rowNum; }