@@ -294,7 +294,7 @@ public void testInvalidQuery() throws SQLException {
294294 @ Test
295295 public void testDriver () throws SQLException {
296296 String connection_uri =
297- ITBigQueryJDBCTest .connection_uri + "" ;
297+ ITBigQueryJDBCTest .connection_uri ;
298298
299299 Driver driver = BigQueryDriver .getRegisteredDriver ();
300300 assertTrue (driver .acceptsURL (connection_uri ));
@@ -322,7 +322,7 @@ public void testDefaultDataset() throws SQLException {
322322 connection .unwrap (BigQueryConnection .class ).getDefaultDataset ());
323323
324324 String connection_uri_null_default_dataset =
325- ITBigQueryJDBCTest .connection_uri + "" ;
325+ ITBigQueryJDBCTest .connection_uri ;
326326
327327 assertTrue (driver .acceptsURL (connection_uri_null_default_dataset ));
328328
@@ -371,7 +371,7 @@ public void testLocation() throws SQLException {
371371 assertEquals (100 , resultSetRowCount (resultSet ));
372372
373373 String connection_uri_null_location =
374- ITBigQueryJDBCTest .connection_uri + "" ;
374+ ITBigQueryJDBCTest .connection_uri ;
375375
376376 assertTrue (driver .acceptsURL (connection_uri_null_location ));
377377
@@ -1322,7 +1322,7 @@ public void testValidLEPEndpointQuery() throws SQLException {
13221322 String TABLE_NAME = "REGIONAL_TABLE" ;
13231323 String selectQuery = "select * from " + DATASET + "." + TABLE_NAME ;
13241324 String connection_uri =
1325- ITBigQueryJDBCTest .connection_uri + ""
1325+ ITBigQueryJDBCTest .connection_uri
13261326 + "EndpointOverrides=BIGQUERY=https://us-east4-bigquery.googleapis.com;" ;
13271327
13281328 // Read data via JDBC
@@ -1338,7 +1338,7 @@ public void testValidEndpointWithInvalidBQPortThrows() throws SQLException {
13381338 String TABLE_NAME = "JDBC_REGIONAL_TABLE_" + randomNumber ;
13391339 String selectQuery = "select * from " + DATASET + "." + TABLE_NAME ;
13401340 String connection_uri =
1341- ITBigQueryJDBCTest .connection_uri + ""
1341+ ITBigQueryJDBCTest .connection_uri
13421342 + "EndpointOverrides=BIGQUERY=https://us-east4-bigquery.googleapis.com:12312312;" ;
13431343
13441344 // Read data via JDBC
@@ -1354,7 +1354,7 @@ public void testLEPEndpointDataNotFoundThrows() throws SQLException {
13541354 String TABLE_NAME = "REGIONAL_TABLE" ;
13551355 String selectQuery = "select * from " + DATASET + "." + TABLE_NAME ;
13561356 String connection_uri =
1357- ITBigQueryJDBCTest .connection_uri + ""
1357+ ITBigQueryJDBCTest .connection_uri
13581358 + "EndpointOverrides=BIGQUERY=https://us-east5-bigquery.googleapis.com;" ;
13591359
13601360 // Attempting read data via JDBC
@@ -1370,7 +1370,7 @@ public void testValidREPEndpointQuery() throws SQLException {
13701370 String TABLE_NAME = "REGIONAL_TABLE" ;
13711371 String selectQuery = "select * from " + DATASET + "." + TABLE_NAME ;
13721372 String connection_uri =
1373- ITBigQueryJDBCTest .connection_uri + ""
1373+ ITBigQueryJDBCTest .connection_uri
13741374 + "EndpointOverrides=BIGQUERY=https://bigquery.us-east4.rep.googleapis.com;" ;
13751375
13761376 // Read data via JDBC
@@ -1387,7 +1387,7 @@ public void testREPEndpointDataNotFoundThrows() throws SQLException {
13871387 String TABLE_NAME = "REGIONAL_TABLE" ;
13881388 String selectQuery = "select * from " + DATASET + "." + TABLE_NAME ;
13891389 String connection_uri =
1390- ITBigQueryJDBCTest .connection_uri + ""
1390+ ITBigQueryJDBCTest .connection_uri
13911391 + "EndpointOverrides=BIGQUERY=https://bigquery.us-east7.rep.googleapis.com;" ;
13921392
13931393 // Attempting read data via JDBC
@@ -1463,7 +1463,7 @@ public void testConnectionIsValid() throws SQLException {
14631463 @ Test
14641464 public void testDataSource () throws SQLException {
14651465 DataSource ds = new DataSource ();
1466- ds .setURL (getBaseConnectionUrl () + "" );
1466+ ds .setURL (getBaseConnectionUrl ());
14671467 ds .setOAuthType (3 );
14681468
14691469 try (Connection connection = ds .getConnection ()) {
@@ -1476,7 +1476,7 @@ public void testDataSourceOAuthPvtKeyPath() throws SQLException, IOException {
14761476 File tempFile = File .createTempFile ("auth" , ".json" );
14771477 tempFile .deleteOnExit ();
14781478 DataSource ds = new DataSource ();
1479- ds .setURL (getBaseConnectionUrl () + "" );
1479+ ds .setURL (getBaseConnectionUrl ());
14801480 ds .setOAuthType (0 );
14811481 ds .setOAuthPvtKeyPath (tempFile .toPath ().toString ());
14821482 assertEquals (0 , ds .getOAuthType ().intValue ());
@@ -1662,7 +1662,7 @@ public void testValidDestinationTableSavesQueriesWithLegacySQL() throws SQLExcep
16621662 public void testNonEnabledUseLegacySQLThrowsSyntaxError () throws SQLException {
16631663 // setup
16641664 String connection_uri =
1665- ITBigQueryJDBCTest .connection_uri + "" ;
1665+ ITBigQueryJDBCTest .connection_uri ;
16661666 String selectLegacyQuery =
16671667 "SELECT * FROM [bigquery-public-data.deepmind_alphafold.metadata] LIMIT 20000000;" ;
16681668 Connection connection = DriverManager .getConnection (connection_uri , new Properties ());
0 commit comments