Skip to content

Commit

Permalink
Using Boolean instead of String
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiDavidW authored Feb 14, 2024
1 parent e468225 commit a5c0ddf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void process(CfCredentials cfCredentials, Map<String, Object> properties)
Optional<String> tlsPort = Optional.ofNullable(cfCredentials.getString("tls_port"));
if (tlsPort.isPresent()) {
properties.put(PREFIX + ".port", tlsPort.get());
properties.put(PREFIX + ".ssl.enabled", "true");
properties.put(PREFIX + ".ssl.enabled", Boolean.TRUE);
} else {
properties.put(PREFIX + ".port", cfCredentials.getPort());
}
Expand All @@ -68,7 +68,7 @@ public void process(CfCredentials cfCredentials, Map<String, Object> properties)
properties.put(PREFIX + ".port", uriInfo.getPort());
properties.put(PREFIX + ".password", uriInfo.getPassword());
if (uriInfo.getScheme().equals("rediss")) {
properties.put(PREFIX + ".ssl.enabled", "true");
properties.put(PREFIX + ".ssl.enabled", Boolean.TRUE);
}
}
}
Expand Down

0 comments on commit a5c0ddf

Please sign in to comment.