Untitled

 avatar
unknown
plain_text
a year ago
724 B
4
Indexable
	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
Editor is loading...
Leave a Comment