From 51b920644c87e34926dfcdc89751daf13fe2fd9d Mon Sep 17 00:00:00 2001 From: deiflaender Date: Fri, 9 Dec 2022 14:20:50 +0100 Subject: [PATCH] RSS-292: Fixed missing s in string.format --- .../report/v1/server/service/RSSPoc2Service.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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/RSSPoc2Service.java b/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/RSSPoc2Service.java index 3501c85..b0b95d1 100644 --- a/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/RSSPoc2Service.java +++ b/redaction-report-service-v1/redaction-report-service-server-v1/src/main/java/com/iqser/red/service/redaction/report/v1/server/service/RSSPoc2Service.java @@ -183,7 +183,7 @@ public class RSSPoc2Service { } if (guidelineDeviationSentences.isEmpty()) { resultMap.put(DEVIATION_FROM_THE_GUIDELINE_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "guideline_deviation")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "guideline_deviation")).build()); } } @@ -215,7 +215,7 @@ public class RSSPoc2Service { } if (sentences.isEmpty()) { resultMap.put(NECROPSY_FINDINGS_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "necropsy_findings")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "necropsy_findings")).build()); } } @@ -240,7 +240,7 @@ public class RSSPoc2Service { } if (weightBehaviorChangesSentences.isEmpty()) { resultMap.put(WEIGHT_BEHAVIOR_CHANGES_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "weight_behavior_changes")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "weight_behavior_changes")).build()); } resultMap.put(MORTALITY_STATEMENT, getAsOneBlock(redactionLog, "mortality_statement")); @@ -256,7 +256,7 @@ public class RSSPoc2Service { } if (sentences.isEmpty()) { resultMap.put(CLINICAL_OBSERVATIONS_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "clinical_observations")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "clinical_observations")).build()); } sentences = getAsSentences(redactionLog, "bodyweight_changes"); @@ -267,7 +267,7 @@ public class RSSPoc2Service { } if (sentences.isEmpty()) { resultMap.put(BODY_WEIGHT_CHANGES_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "bodyweight_changes")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "bodyweight_changes")).build()); } } @@ -290,7 +290,7 @@ public class RSSPoc2Service { } if (clinicalSignsSentences.isEmpty()) { resultMap.put(CLINCAL_SIGNS_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "clinical_signs")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "clinical_signs")).build()); } var doseMortalitySentences = getDoseMortality(redactionLog); @@ -317,7 +317,7 @@ public class RSSPoc2Service { } if (sentences.isEmpty()) { resultMap.put(PRELIMINARY_TEST_RESULTS_SENTENCE + 1, - SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%' as sentences", "preliminary_test_results")).build()); + SCMComponent.builder().originalValue("").transformation(String.format("Values of type '%s' as sentences", "preliminary_test_results")).build()); } resultMap.put(TEST_RESULTS, getAsOneBlock(redactionLog, "test_results")); @@ -680,7 +680,7 @@ public class RSSPoc2Service { private List getAsSentences(RedactionLog redactionLog, String type) { - String transformation = String.format("Values of type '%' as sentences", type); + String transformation = String.format("Values of type '%s' as sentences", type); List sentences = new ArrayList<>(); var typeStringsEntries = redactionLog.getRedactionLogEntry().stream().filter(r -> r.getType().equals(type)).collect(Collectors.toList());