Skip to content

Commit dddb736

Browse files
committed
Remove redundant throws from services method signatures
1 parent 60f0a8f commit dddb736

File tree

12 files changed

+364
-198
lines changed

12 files changed

+364
-198
lines changed

gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/BigQuery.java

+26-27
Original file line numberDiff line numberDiff line change
@@ -457,35 +457,35 @@ public static QueryResultsOption maxWaitTime(long maxWaitTime) {
457457
*
458458
* @throws BigQueryException upon failure
459459
*/
460-
Dataset create(DatasetInfo dataset, DatasetOption... options) throws BigQueryException;
460+
Dataset create(DatasetInfo dataset, DatasetOption... options);
461461

462462
/**
463463
* Creates a new table.
464464
*
465465
* @throws BigQueryException upon failure
466466
*/
467-
Table create(TableInfo table, TableOption... options) throws BigQueryException;
467+
Table create(TableInfo table, TableOption... options);
468468

469469
/**
470470
* Creates a new job.
471471
*
472472
* @throws BigQueryException upon failure
473473
*/
474-
Job create(JobInfo job, JobOption... options) throws BigQueryException;
474+
Job create(JobInfo job, JobOption... options);
475475

476476
/**
477477
* Returns the requested dataset or {@code null} if not found.
478478
*
479479
* @throws BigQueryException upon failure
480480
*/
481-
Dataset getDataset(String datasetId, DatasetOption... options) throws BigQueryException;
481+
Dataset getDataset(String datasetId, DatasetOption... options);
482482

483483
/**
484484
* Returns the requested dataset or {@code null} if not found.
485485
*
486486
* @throws BigQueryException upon failure
487487
*/
488-
Dataset getDataset(DatasetId datasetId, DatasetOption... options) throws BigQueryException;
488+
Dataset getDataset(DatasetId datasetId, DatasetOption... options);
489489

490490
/**
491491
* Lists the project's datasets. This method returns partial information on each dataset
@@ -495,67 +495,67 @@ public static QueryResultsOption maxWaitTime(long maxWaitTime) {
495495
*
496496
* @throws BigQueryException upon failure
497497
*/
498-
Page<Dataset> listDatasets(DatasetListOption... options) throws BigQueryException;
498+
Page<Dataset> listDatasets(DatasetListOption... options);
499499

500500
/**
501501
* Deletes the requested dataset.
502502
*
503503
* @return {@code true} if dataset was deleted, {@code false} if it was not found
504504
* @throws BigQueryException upon failure
505505
*/
506-
boolean delete(String datasetId, DatasetDeleteOption... options) throws BigQueryException;
506+
boolean delete(String datasetId, DatasetDeleteOption... options);
507507

508508
/**
509509
* Deletes the requested dataset.
510510
*
511511
* @return {@code true} if dataset was deleted, {@code false} if it was not found
512512
* @throws BigQueryException upon failure
513513
*/
514-
boolean delete(DatasetId datasetId, DatasetDeleteOption... options) throws BigQueryException;
514+
boolean delete(DatasetId datasetId, DatasetDeleteOption... options);
515515

516516
/**
517517
* Deletes the requested table.
518518
*
519519
* @return {@code true} if table was deleted, {@code false} if it was not found
520520
* @throws BigQueryException upon failure
521521
*/
522-
boolean delete(String datasetId, String tableId) throws BigQueryException;
522+
boolean delete(String datasetId, String tableId);
523523

524524
/**
525525
* Deletes the requested table.
526526
*
527527
* @return {@code true} if table was deleted, {@code false} if it was not found
528528
* @throws BigQueryException upon failure
529529
*/
530-
boolean delete(TableId tableId) throws BigQueryException;
530+
boolean delete(TableId tableId);
531531

532532
/**
533533
* Updates dataset information.
534534
*
535535
* @throws BigQueryException upon failure
536536
*/
537-
Dataset update(DatasetInfo dataset, DatasetOption... options) throws BigQueryException;
537+
Dataset update(DatasetInfo dataset, DatasetOption... options);
538538

539539
/**
540540
* Updates table information.
541541
*
542542
* @throws BigQueryException upon failure
543543
*/
544-
Table update(TableInfo table, TableOption... options) throws BigQueryException;
544+
Table update(TableInfo table, TableOption... options);
545545

546546
/**
547547
* Returns the requested table or {@code null} if not found.
548548
*
549549
* @throws BigQueryException upon failure
550550
*/
551-
Table getTable(String datasetId, String tableId, TableOption... options) throws BigQueryException;
551+
Table getTable(String datasetId, String tableId, TableOption... options);
552552

553553
/**
554554
* Returns the requested table or {@code null} if not found.
555555
*
556556
* @throws BigQueryException upon failure
557557
*/
558-
Table getTable(TableId tableId, TableOption... options) throws BigQueryException;
558+
Table getTable(TableId tableId, TableOption... options);
559559

560560
/**
561561
* Lists the tables in the dataset. This method returns partial information on each table
@@ -566,7 +566,7 @@ public static QueryResultsOption maxWaitTime(long maxWaitTime) {
566566
*
567567
* @throws BigQueryException upon failure
568568
*/
569-
Page<Table> listTables(String datasetId, TableListOption... options) throws BigQueryException;
569+
Page<Table> listTables(String datasetId, TableListOption... options);
570570

571571
/**
572572
* Lists the tables in the dataset. This method returns partial information on each table
@@ -577,51 +577,50 @@ public static QueryResultsOption maxWaitTime(long maxWaitTime) {
577577
*
578578
* @throws BigQueryException upon failure
579579
*/
580-
Page<Table> listTables(DatasetId datasetId, TableListOption... options) throws BigQueryException;
580+
Page<Table> listTables(DatasetId datasetId, TableListOption... options);
581581

582582
/**
583583
* Sends an insert all request.
584584
*
585585
* @throws BigQueryException upon failure
586586
*/
587-
InsertAllResponse insertAll(InsertAllRequest request) throws BigQueryException;
587+
InsertAllResponse insertAll(InsertAllRequest request);
588588

589589
/**
590590
* Lists the table's rows.
591591
*
592592
* @throws BigQueryException upon failure
593593
*/
594594
Page<List<FieldValue>> listTableData(String datasetId, String tableId,
595-
TableDataListOption... options) throws BigQueryException;
595+
TableDataListOption... options);
596596

597597
/**
598598
* Lists the table's rows.
599599
*
600600
* @throws BigQueryException upon failure
601601
*/
602-
Page<List<FieldValue>> listTableData(TableId tableId, TableDataListOption... options)
603-
throws BigQueryException;
602+
Page<List<FieldValue>> listTableData(TableId tableId, TableDataListOption... options);
604603

605604
/**
606605
* Returns the requested job or {@code null} if not found.
607606
*
608607
* @throws BigQueryException upon failure
609608
*/
610-
Job getJob(String jobId, JobOption... options) throws BigQueryException;
609+
Job getJob(String jobId, JobOption... options);
611610

612611
/**
613612
* Returns the requested job or {@code null} if not found.
614613
*
615614
* @throws BigQueryException upon failure
616615
*/
617-
Job getJob(JobId jobId, JobOption... options) throws BigQueryException;
616+
Job getJob(JobId jobId, JobOption... options);
618617

619618
/**
620619
* Lists the jobs.
621620
*
622621
* @throws BigQueryException upon failure
623622
*/
624-
Page<Job> listJobs(JobListOption... options) throws BigQueryException;
623+
Page<Job> listJobs(JobListOption... options);
625624

626625
/**
627626
* Sends a job cancel request. This call will return immediately. The job status can then be
@@ -632,7 +631,7 @@ Page<List<FieldValue>> listTableData(TableId tableId, TableDataListOption... opt
632631
* found
633632
* @throws BigQueryException upon failure
634633
*/
635-
boolean cancel(String jobId) throws BigQueryException;
634+
boolean cancel(String jobId);
636635

637636
/**
638637
* Sends a job cancel request. This call will return immediately. The job status can then be
@@ -643,21 +642,21 @@ Page<List<FieldValue>> listTableData(TableId tableId, TableDataListOption... opt
643642
* found
644643
* @throws BigQueryException upon failure
645644
*/
646-
boolean cancel(JobId tableId) throws BigQueryException;
645+
boolean cancel(JobId tableId);
647646

648647
/**
649648
* Runs the query associated with the request.
650649
*
651650
* @throws BigQueryException upon failure
652651
*/
653-
QueryResponse query(QueryRequest request) throws BigQueryException;
652+
QueryResponse query(QueryRequest request);
654653

655654
/**
656655
* Returns results of the query associated with the provided job.
657656
*
658657
* @throws BigQueryException upon failure
659658
*/
660-
QueryResponse getQueryResults(JobId job, QueryResultsOption... options) throws BigQueryException;
659+
QueryResponse getQueryResults(JobId job, QueryResultsOption... options);
661660

662661
/**
663662
* Returns a channel to write data to be inserted into a BigQuery table. Data format and other

0 commit comments

Comments
 (0)