Skip to content

Commit ef7530b

Browse files
committed
lint
1 parent 55e03be commit ef7530b

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -752,16 +752,5 @@ static AuthType fromValue(int value) {
752752
LOG.severe(ex.getMessage(), ex);
753753
throw ex;
754754
}
755-
756-
static AuthType fromValue(String value) {
757-
for (AuthType authType : values()) {
758-
if (authType.name().equalsIgnoreCase(value)) {
759-
return authType;
760-
}
761-
}
762-
IllegalStateException ex = new IllegalStateException(OAUTH_TYPE_ERROR_MESSAGE + ": " + value);
763-
LOG.severe(ex.getMessage(), ex);
764-
throw ex;
765-
}
766755
}
767756
}

java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ public void setQueryTimeoutTest() throws Exception {
302302
doReturn(job).when(bigquery).queryWithTimeout(any(), any(), any());
303303

304304
doReturn(jsonResultSet).when(bigQueryStatementSpy).processJsonResultSet(result);
305-
ArgumentCaptor<QueryJobConfiguration> captor = ArgumentCaptor.forClass(QueryJobConfiguration.class);
305+
ArgumentCaptor<QueryJobConfiguration> captor =
306+
ArgumentCaptor.forClass(QueryJobConfiguration.class);
306307

307308
bigQueryStatementSpy.runQuery(query, jobConfiguration);
308309
verify(bigquery).queryWithTimeout(captor.capture(), any(), any());

0 commit comments

Comments
 (0)