Browse Source

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>
stable-4.3
Matthias Sohn 9 years ago
parent
commit
3af05f6080
  1. 3
      org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
  2. 3
      org.eclipse.jgit.test/tst/org/eclipse/jgit/util/ChangeIdUtilTest.java

3
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

@ -1155,8 +1155,7 @@ public class TestRepository<R extends Repository> {
return self; return self;
} }
private void insertChangeId(org.eclipse.jgit.lib.CommitBuilder c) private void insertChangeId(org.eclipse.jgit.lib.CommitBuilder c) {
throws IOException {
if (changeId == null) if (changeId == null)
return; return;
int idx = ChangeIdUtil.indexOfChangeId(message, "\n"); int idx = ChangeIdUtil.indexOfChangeId(message, "\n");

3
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/ChangeIdUtilTest.java

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

Loading…
Cancel
Save