Skip to content

Commit 8f4e72b

Browse files
author
Lloyd Watkin
committed
Add a containsKey method, use this
1 parent 3f4d6d5 commit 8f4e72b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/org/buddycloud/channelserver/Configuration.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,15 @@ public boolean isLocalJID(JID jid) {
249249

250250
public String getDatabaseConnectionUrl() {
251251
String url = this.getProperty("jdbc.proxool.driver-url");
252-
String user = this.getProperty("jdbc.user");
253-
if (null != user) {
252+
if (this.containsKey("jdbc.user")) {
254253
url +=
255254
"?user=" + this.getProperty("jdbc.user") + "&password="
256255
+ this.getProperty("jdbc.password");
257256
}
258257
return url;
259258
}
259+
260+
public boolean containsKey(Object value) {
261+
return conf.containsKey(value);
262+
}
260263
}

0 commit comments

Comments
 (0)