diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java index 377f45859..6e64d9885 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java @@ -5722,18 +5722,18 @@ final void unprepareUnreferencedPreparedStatementHandles(boolean force) { } /** - * Returns true if statement pooling is disabled. + * Determine whether statement pooling is disabled. * - * @return + * @return true if statement pooling is disabled, false if it is enabled. */ public boolean getDisableStatementPooling() { return this.disableStatementPooling; } /** - * Sets statement pooling to true or false; + * Disable/enable statement pooling. * - * @param value + * @param value true to disable statement pooling, false to enable it. */ public void setDisableStatementPooling(boolean value) { this.disableStatementPooling = value; diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java index 353c0ddd1..96d25f106 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java @@ -784,16 +784,16 @@ public int getStatementPoolingCacheSize() { } /** - * Sets the statement pooling to true or false - * @param disableStatementPooling + * Disable/enable statement pooling. + * @param disableStatementPooling true to disable statement pooling, false to enable it. */ public void setDisableStatementPooling(boolean disableStatementPooling) { setBooleanProperty(connectionProps, SQLServerDriverBooleanProperty.DISABLE_STATEMENT_POOLING.toString(), disableStatementPooling); } /** - * Returns true if statement pooling is disabled. - * @return + * Determine whether statement pooling is disabled. + * @return true if statement pooling is disabled, false if it is enabled. */ public boolean getDisableStatementPooling() { boolean defaultValue = SQLServerDriverBooleanProperty.DISABLE_STATEMENT_POOLING.getDefaultValue();