change "&" to "&&"
@@ -1855,7 +1855,7 @@ final class TDSChannel {
isValidTrustStore = !StringUtils.isEmpty(trustStoreFileName);
isTrustServerCertificate = con.trustServerCertificate();
- if (isEncryptOn & !isTrustServerCertificate) {
+ if (isEncryptOn && !isTrustServerCertificate) {
if (logger.isLoggable(Level.FINER))
logger.finer(toString() + " Found parameters are encrypt is true & trustServerCertificate false");
