From 6f58882654b1fae7ce58e80a47d4d349b7e419d6 Mon Sep 17 00:00:00 2001 From: Ali Oezyetimoglu Date: Fri, 24 Feb 2023 10:41:19 +0100 Subject: [PATCH] RED-6098: Fixed bug in method isRedactionPlaceholder --- .../v1/server/service/ExcelReportGenerationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/ExcelReportGenerationService.java b/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/ExcelReportGenerationService.java index 836c32b..837eb00 100644 --- a/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/ExcelReportGenerationService.java +++ b/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/ExcelReportGenerationService.java @@ -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);