switch to StringUtils
@@ -1997,7 +1997,7 @@ public class SQLServerConnection implements ISQLServerConnection {
// Before opening the TDSChannel, calculate local hostname
// as the InetAddress.getLocalHost() takes more than usual time in certain OS and JVM combination, it avoids connection loss
hostName = activeConnectionProperties.getProperty(SQLServerDriverStringProperty.WORKSTATION_ID.toString());
- if (hostName == null || hostName.length() == 0) {
+ if (StringUtils.isEmpty(hostName)) {
hostName = Util.lookupHostName();
}
