Remove unneeded 'throws NoSuchChangeException'
Since I7819d3b249c456f9d2749b808a9e67fd4759e3e8, this method no longer
throw NoSuchChangeException so remove the throws declaration.
Change-Id: I38eeaf828dfe99fb3c36d6c5d971c9e1f698b758
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
index fd4cebf..56c5d39 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
@@ -21,7 +21,6 @@
import com.google.gerrit.reviewdb.client.Project;
import com.google.gerrit.reviewdb.server.ReviewDb;
import com.google.gerrit.server.events.ChangeEvent;
-import com.google.gerrit.server.project.NoSuchChangeException;
import com.google.gwtorm.server.OrmException;
import com.google.gwtorm.server.SchemaFactory;
@@ -195,8 +194,7 @@
}
}
- private Change retrieveChange(String ref, ReviewDb db)
- throws OrmException, NoSuchChangeException {
+ private Change retrieveChange(String ref, ReviewDb db) throws OrmException {
PatchSet.Id id = PatchSet.Id.fromRef(ref);
Change change = db.changes().get(id.getParentKey());
return change;