]> source.dussan.org Git - jgit.git/commitdiff
Remove declared IOException which is no longer thrown 12/64712/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 20 Jan 2016 00:53:17 +0000 (01:53 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 20 Jan 2016 00:55:51 +0000 (01:55 +0100)
Since 2ccea7f0 ChangeIdUtil.computeChangeId() doesn't throw IOException
anymore.

Change-Id: I0bf43f2346dadbbfe7e6cbcb38b5525456fbf686
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/ChangeIdUtilTest.java

index 3a4f9c788407981c00293b1414168a534b1ea353..8439c39c8b8d67d9e1aab3523a5c2c574861d53e 100644 (file)
@@ -1155,8 +1155,7 @@ public class TestRepository<R extends Repository> {
                        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");
index 7273cdbabcd6150789a844264a3d7c43ba78d72f..aaeb79c64a4635265d78ec6d904f15cf9da4f494 100644 (file)
@@ -45,7 +45,6 @@ package org.eclipse.jgit.util;
 
 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 class ChangeIdUtilTest {
        }
 
        @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