Skip to content

Commit

Permalink
Compared trimmed values
Browse files Browse the repository at this point in the history
(cherry picked from commit 7855086)
  • Loading branch information
stuartwdouglas authored and geoand committed Sep 28, 2021
1 parent bba3de6 commit 629da8a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ DevServicesDatasourceResultBuildItem launchDatabases(CurateOutcomeBuildItem cura
if (!restartRequired) {
for (Map.Entry<String, String> entry : cachedProperties.entrySet()) {
if (!Objects.equals(entry.getValue(),
ConfigProvider.getConfig().getOptionalValue(entry.getKey(), String.class).orElse(null))) {
trim(ConfigProvider.getConfig().getOptionalValue(entry.getKey(), String.class).orElse(null)))) {
restartRequired = true;
break;
}
Expand Down Expand Up @@ -172,6 +172,13 @@ public void run() {
return new DevServicesDatasourceResultBuildItem(defaultResult, namedResults);
}

private String trim(String optional) {
if (optional == null) {
return null;
}
return optional.trim();
}

private DevServicesDatasourceResultBuildItem.DbResult startDevDb(String dbName,
CurateOutcomeBuildItem curateOutcomeBuildItem,
List<DefaultDataSourceDbKindBuildItem> installedDrivers,
Expand Down

0 comments on commit 629da8a

Please sign in to comment.