Untitled
unknown
plain_text
2 years ago
682 B
9
Indexable
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 solutionEditor is loading...
Leave a Comment