RED-6098: Fixed bug in method isRedactionPlaceholder

This commit is contained in:
Ali Oezyetimoglu 2023-02-24 10:41:19 +01:00
parent 22b57bb191
commit 6f58882654

View File

@ -352,7 +352,7 @@ public class ExcelReportGenerationService {
private boolean isRedactionPlaceholder(String text) {
return prefixRedactionPlaceholders.stream().anyMatch(text::startsWith) || redactionPlaceholders.contains(text);
return prefixRedactionPlaceholders.stream().anyMatch(text::startsWith) || redactionPlaceholders.stream().anyMatch(text::contains);
}
@ -419,7 +419,7 @@ public class ExcelReportGenerationService {
anchor.setRow1(cell.getRowIndex());
//Creates the top-level drawing patriarch.
Drawing drawing = sheet.createDrawingPatriarch();
Drawing<?> drawing = sheet.createDrawingPatriarch();
Picture picture = drawing.createPicture(anchor, pictureIdx);
picture.resize(factor);