Elffuss BraidHub

kikocis/java-driver public

Fixing wrong check for supplied parameter heartbeatIntervalSeconds.
Changeseta8b456b7755fc681906f84082cb961b0a5aa111697a2b545d9f0116baf6029bb
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-05-28 13:15 +02:00
CommitterAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-05-28 13:15 +02:00
Parentsac1c213ddb09

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/PoolingOptions.java +1 −1
@@ -310,7 +310,7 @@
310310 * @throws IllegalArgumentException if the interval is negative.
311311 */
312312 public PoolingOptions setHeartbeatIntervalSeconds(int heartbeatIntervalSeconds) {
313- if (poolTimeoutMillis < 0)
313+ if (heartbeatIntervalSeconds < 0)
314314 throw new IllegalArgumentException("Heartbeat interval must be positive");
315315
316316 this.heartbeatIntervalSeconds = heartbeatIntervalSeconds;