compare strings with equals

pull/90/head
Cristi Popovici 11 years ago
parent cd808addcc
commit 0427d48fb6

@ -272,13 +272,13 @@ public class HikariDataSource extends HikariConfig implements DataSource
if (username != null && !username.equals(otherKey.username)) { if (username != null && !username.equals(otherKey.username)) {
return false; return false;
} }
else if (username != otherKey.username) { else if (!username.equals(otherKey.username)) {
return false; return false;
} }
else if (password != null && !password.equals(otherKey.password)) { else if (password != null && !password.equals(otherKey.password)) {
return false; return false;
} }
else if (password != otherKey.password) { else if (!password.equals(otherKey.password)) {
return false; return false;
} }

Loading…
Cancel
Save