Remove declared IOException which is no longer thrown

Since 2ccea7f0 ChangeIdUtil.computeChangeId() doesn't throw IOException
anymore.

Change-Id: I0bf43f2346dadbbfe7e6cbcb38b5525456fbf686
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2016-01-20 01:53:17 +01:00
parent 2ccea7f05a
commit 3af05f6080
2 changed files with 2 additions and 4 deletions

View File

@ -1155,8 +1155,7 @@ public RevCommit create() throws Exception {
return self;
}
private void insertChangeId(org.eclipse.jgit.lib.CommitBuilder c)
throws IOException {
private void insertChangeId(org.eclipse.jgit.lib.CommitBuilder c) {
if (changeId == null)
return;
int idx = ChangeIdUtil.indexOfChangeId(message, "\n");

View File

@ -45,7 +45,6 @@
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.eclipse.jgit.junit.MockSystemReader;
@ -113,7 +112,7 @@ public void testClean() {
}
@Test
public void testId() throws IOException {
public void testId() {
String msg = "A\nMessage\n";
ObjectId id = ChangeIdUtil.computeChangeId(treeId, parentId, p, q, msg);
assertEquals("73f3751208ac92cbb76f9a26ac4a0d9d472e381b", ObjectId