Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
682 B
4
Indexable
Never
		if (null != iOUName) {
			cell0 = hssfSheet.getRow(0).createCell(3);
			cell0.setCellStyle(stl);
			cell0.setCellValue("Back");
			Hyperlink hp = wb.getCreationHelper().createHyperlink(Hyperlink.LINK_DOCUMENT);

			hp.setAddress(LiteralConstants.INDEX1);
			cell0.setHyperlink(hp);

			hssfSheet.createRow(1);
			cell0 = hssfSheet.getRow(1).createCell(0);
			cell0.setCellValue(LiteralConstants.OUNAME);

			cell0 = hssfSheet.getRow(1).createCell(1);
			cell0.setCellValue(iOUName);
			cell0.setCellStyle(style);
		}

can you resolve the sonar issues "Dead Code: Expression is Always false" for the if (null != iOUName), can you modify the code and give solution
Leave a Comment