Skip to content

Commit

Permalink
Fx checkstyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
aashikam committed Jan 6, 2024
1 parent af4c768 commit b31239b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static final class SSL {
public static final BString SSL_MODE = StringUtils.fromString("ssl");
public static final BString ROOT_CERT = StringUtils.fromString("rootcert");
public static final BString SSL_FACTORY_ARG = StringUtils.fromString("sslfactory");
public static final BString SSL_FACTORY_VALUE = StringUtils.fromString("com.amazon.redshift.ssl.NonValidatingFactory");
public static final BString SSL_FACTORY_VALUE =
StringUtils.fromString("com.amazon.redshift.ssl.NonValidatingFactory");
public static final BString SSL_ROOT_CERT_ARG = StringUtils.fromString("sslfactoryarg");

}
Expand Down
6 changes: 3 additions & 3 deletions native/src/main/java/io/ballerina/lib/aws/redshift/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public static void addSSLOptions(BMap secureSocket, BMap<BString, Object> option
options.put(Constants.SSL.SSL_MODE, false);
} else {
options.put(Constants.SSL.SSL_MODE, true);
BString sslrootcert = secureSocket.getStringValue(Constants.SSL.ROOT_CERT);
BString sslRootCert = secureSocket.getStringValue(Constants.SSL.ROOT_CERT);
options.put(Constants.SSL.SSL_FACTORY_ARG, Constants.SSL.SSL_FACTORY_VALUE.getValue());
if (sslrootcert != null) {
options.put(Constants.SSL.SSL_ROOT_CERT_ARG, sslrootcert);
if (sslRootCert != null) {
options.put(Constants.SSL.SSL_ROOT_CERT_ARG, sslRootCert);
}
}
}
Expand Down

0 comments on commit b31239b

Please sign in to comment.