Skip to content

Commit

Permalink
Rename Session#getDriverVersion to getCoreDriverVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
olim7t committed Jan 26, 2018
1 parent 9ec5ee6 commit 2681bd7
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -18,9 +18,9 @@
import com.datastax.oss.driver.api.core.AsyncAutoCloseable;
import com.datastax.oss.driver.api.core.CqlIdentifier;
import com.datastax.oss.driver.api.core.CqlSession;
import com.datastax.oss.driver.api.core.CqlSessionBuilder;
import com.datastax.oss.driver.api.core.config.CoreDriverOption;
import com.datastax.oss.driver.api.core.context.DriverContext;
import com.datastax.oss.driver.api.core.CqlSessionBuilder;
import com.datastax.oss.driver.api.core.metadata.Metadata;
import com.datastax.oss.driver.api.core.metadata.Node;
import com.datastax.oss.driver.api.core.metadata.NodeState;
Expand Down Expand Up @@ -50,12 +50,13 @@
public interface Session extends AsyncAutoCloseable {

/**
* The current version of the driver.
* The current version of the core driver (in other words, the version of the {@code
* com.datastax.oss:java-driver-core} artifact).
*
* <p>This is intended for products that wrap or extend the driver, as a way to check
* compatibility if end-users override the driver version in their application.
*/
static String getDriverVersion() {
static String getCoreDriverVersion() {
// Note: getBundle caches its result
return ResourceBundle.getBundle("com.datastax.oss.driver.Driver").getString("driver.version");
}
Expand Down

0 comments on commit 2681bd7

Please sign in to comment.