#5023 Unexpected usage of awssdk StringUtils in hapi 6.6 jpa migration (#5024)

task

Replace usage of awssdk
This commit is contained in:
Thomas Papke 2023-07-03 23:42:07 +02:00 committed by GitHub
parent 39ee86d0fe
commit 754bd49781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ import ca.uhn.fhir.jpa.model.entity.SearchParamPresentEntity;
import ca.uhn.fhir.jpa.model.entity.StorageSettings;
import ca.uhn.fhir.util.ClasspathUtil;
import ca.uhn.fhir.util.VersionEnum;
import software.amazon.awssdk.utils.StringUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.HashMap;
@ -505,7 +505,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
String postgresTuningStatementsAll = ClasspathUtil.loadResource("ca/uhn/fhir/jpa/docs/database/hapifhirpostgres94-init01.sql");
List<String> postgresTuningStatements = Arrays
.stream(postgresTuningStatementsAll.split("\\n"))
.map(org.apache.commons.lang3.StringUtils::trim)
.map(StringUtils::trim)
.filter(StringUtils::isNotBlank)
.filter(t -> !t.startsWith("--"))
.collect(Collectors.toList());