Merge pull request #90 from hipjim/dev

small code cleanups
pull/93/head
Brett Wooldridge 11 years ago
commit e4735ad8cf

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

@ -89,7 +89,7 @@ public class HikariJNDIFactory implements ObjectFactory
if (jndiDS == null) {
try {
context = (Context) (new InitialContext());
context = new InitialContext();
jndiDS = (DataSource) context.lookup(jndiName);
}
catch (NamingException e) {

Loading…
Cancel
Save