Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/jdbc/MonetDriver.java @ 869:676725ad17b5
Remove not needed/used internal method checkValidProperty()
Make the MonetConnection target variable private and final.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 01 Feb 2024 20:55:01 +0100 (14 months ago) |
parents | d9a45743536d |
children | ff7dbded88c8 |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetDriver.java +++ b/src/main/java/org/monetdb/jdbc/MonetDriver.java @@ -16,7 +16,13 @@ import org.monetdb.mcl.net.Target; import org.monetdb.mcl.net.ValidationError; import java.net.URISyntaxException; -import java.sql.*; +import java.sql.Connection; +import java.sql.Driver; +import java.sql.DriverManager; +import java.sql.DriverPropertyInfo; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import java.sql.Types; import java.util.Map.Entry; import java.util.Properties; @@ -93,9 +99,7 @@ public final class MonetDriver implement * @throws SQLException if a database access error occurs */ @Override - public Connection connect(final String url, Properties info) - throws SQLException - { + public Connection connect(final String url, final Properties info) throws SQLException { // url should be of style jdbc:monetdb://<host>/<database> if (!acceptsURL(url)) return null;