Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Othmane BENTALEB committed Aug 1, 2024
1 parent 9b56a8b commit 7342d2e
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,8 @@ private String[] getProfilesForValue(Object property, ConfigurableEnvironment en
}

private String[] resolvePlaceholdersInProfiles(String profiles, ConfigurableEnvironment environment) {
return Arrays.stream(StringUtils.tokenizeToStringArray(profiles, ",")).map(s -> {
if (s.startsWith("${") && s.endsWith("}")) {
return environment.resolvePlaceholders(s);
}
else {
return s;
}
}).toArray(String[]::new);
String resolvedProfiles = environment.resolvePlaceholders(profiles);
return StringUtils.tokenizeToStringArray(resolvedProfiles, ",");
}

/*
Expand Down

0 comments on commit 7342d2e

Please sign in to comment.