Remove more unnecessary "throws" declarations

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201243722
This commit is contained in:
mcilwain 2018-06-19 14:40:42 -07:00 committed by Ben McIlwain
parent 47322b7fcd
commit ad73f3d167
61 changed files with 318 additions and 331 deletions

View file

@ -66,8 +66,7 @@ final class LoadSnapshotCommand extends BigqueryCommand {
* Starts load jobs for the given snapshot kinds, and returns a map of kind name to
* ListenableFuture representing the result of the load job for that kind.
*/
private Map<String, ListenableFuture<?>> loadSnapshotKinds(List<String> kindNames)
throws Exception {
private Map<String, ListenableFuture<?>> loadSnapshotKinds(List<String> kindNames) {
ImmutableMap.Builder<String, ListenableFuture<?>> builder = new ImmutableMap.Builder<>();
for (String kind : kindNames) {
String filename = String.format(
@ -79,7 +78,7 @@ final class LoadSnapshotCommand extends BigqueryCommand {
}
/** Starts a load job for the specified kind name, sourcing data from the given GCS file. */
private ListenableFuture<?> loadSnapshotFile(String filename, String kindName) throws Exception {
private ListenableFuture<?> loadSnapshotFile(String filename, String kindName) {
return bigquery().load(
bigquery().buildDestinationTable(kindName)
.description("Datastore snapshot import for " + kindName + ".")