Clean up unused throws
Change-Id: I66a8ffcda4ef765e86203a3d4ced98163d99125c
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java
index 264cb16..ebb7d10 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java
@@ -109,7 +109,7 @@
}
private void export(ReviewDb db, Project.NameKey project, List<Change> changes)
- throws IOException, OrmException, InterruptedException {
+ throws IOException, OrmException {
final Repository git;
try {
git = gitManager.openRepository(project);
@@ -170,11 +170,7 @@
if (next != null) {
try {
export(db, next.getKey(), next.getValue());
- } catch (IOException e) {
- stderr.print(e.getMessage());
- } catch (OrmException e) {
- stderr.print(e.getMessage());
- } catch (InterruptedException e) {
+ } catch (OrmException | IOException e) {
stderr.print(e.getMessage());
}
} else {