Skip to content

Commit a5c0ddf

Browse files
authored
Using Boolean instead of String
1 parent e468225 commit a5c0ddf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-cfenv-boot/src/main/java/io/pivotal/cfenv/spring/boot/RedisCfEnvProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void process(CfCredentials cfCredentials, Map<String, Object> properties)
5858
Optional<String> tlsPort = Optional.ofNullable(cfCredentials.getString("tls_port"));
5959
if (tlsPort.isPresent()) {
6060
properties.put(PREFIX + ".port", tlsPort.get());
61-
properties.put(PREFIX + ".ssl.enabled", "true");
61+
properties.put(PREFIX + ".ssl.enabled", Boolean.TRUE);
6262
} else {
6363
properties.put(PREFIX + ".port", cfCredentials.getPort());
6464
}
@@ -68,7 +68,7 @@ public void process(CfCredentials cfCredentials, Map<String, Object> properties)
6868
properties.put(PREFIX + ".port", uriInfo.getPort());
6969
properties.put(PREFIX + ".password", uriInfo.getPassword());
7070
if (uriInfo.getScheme().equals("rediss")) {
71-
properties.put(PREFIX + ".ssl.enabled", "true");
71+
properties.put(PREFIX + ".ssl.enabled", Boolean.TRUE);
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)