Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
724 B
1
Indexable
Never
	private void addDcBcpReportLogicIfRefract(XSSFCellStyle h11, List<Map<String, Object>> list2, int i, int j,
			String key, XSSFCell cell) {
		if (j == 2) {

			if (null == list2.get(i).get(key) || list2.get(i).get(key).toString().isEmpty()) {
				cell.setCellValue(String.valueOf(' '));
			} else {
				// LOG.info(list2.get(i).get(key).toString());
				// LOG.info(Integer.parseInt(list2.get(i).get(key).toString()));
				cell.setCellValue(Float.parseFloat(list2.get(i).get(key).toString()));

			}
			cell.setCellStyle(h11);
			/* j++; */

		}
	}

In the above code I'm getting SAST error that Dead Code: Expression is Always false for "if (j == 2) " can you modify the above code and give me solution
Leave a Comment