Skip to content

Commit de2f194

Browse files
committed
Remove unused DiffException declarations
Signed-off-by: Stephen Kitt <skitt@redhat.com>
1 parent 5dd05c4 commit de2f194

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/main/java/com/github/difflib/algorithm/jgit/HistogramDiff.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import com.github.difflib.algorithm.Change;
1919
import com.github.difflib.algorithm.DiffAlgorithmI;
2020
import com.github.difflib.algorithm.DiffAlgorithmListener;
21-
import com.github.difflib.algorithm.DiffException;
2221
import com.github.difflib.patch.DeltaType;
2322
import java.util.ArrayList;
2423
import java.util.List;
@@ -37,7 +36,7 @@
3736
public class HistogramDiff<T> implements DiffAlgorithmI<T> {
3837

3938
@Override
40-
public List<Change> computeDiff(List<T> source, List<T> target, DiffAlgorithmListener progress) throws DiffException {
39+
public List<Change> computeDiff(List<T> source, List<T> target, DiffAlgorithmListener progress) {
4140
Objects.requireNonNull(source, "source list must not be null");
4241
Objects.requireNonNull(target, "target list must not be null");
4342
if (progress != null) {

src/test/java/com/github/difflib/algorithm/jgit/HistogramDiffTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package com.github.difflib.algorithm.jgit;
1717

1818
import com.github.difflib.algorithm.DiffAlgorithmListener;
19-
import com.github.difflib.algorithm.DiffException;
2019
import com.github.difflib.patch.Patch;
2120
import com.github.difflib.patch.PatchFailedException;
2221
import java.util.ArrayList;
@@ -58,7 +57,7 @@ public void tearDown() {
5857
* Test of diff method, of class HistogramDiff.
5958
*/
6059
@Test
61-
public void testDiff() throws DiffException, PatchFailedException {
60+
public void testDiff() throws PatchFailedException {
6261
List<String> orgList = Arrays.asList("A", "B", "C", "A", "B", "B", "A");
6362
List<String> revList = Arrays.asList("C", "B", "A", "B", "A", "C");
6463
final Patch<String> patch = Patch.generate(orgList, revList, new HistogramDiff().computeDiff(orgList, revList, null));
@@ -72,7 +71,7 @@ public void testDiff() throws DiffException, PatchFailedException {
7271
}
7372

7473
@Test
75-
public void testDiffWithListener() throws DiffException, PatchFailedException {
74+
public void testDiffWithListener() throws PatchFailedException {
7675
List<String> orgList = Arrays.asList("A", "B", "C", "A", "B", "B", "A");
7776
List<String> revList = Arrays.asList("C", "B", "A", "B", "A", "C");
7877

src/test/java/com/github/difflib/algorithm/jgit/LRHistogramDiffTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static com.github.difflib.DiffUtilsTest.readStringListFromInputStream;
1919
import com.github.difflib.TestConstants;
2020
import com.github.difflib.algorithm.DiffAlgorithmListener;
21-
import com.github.difflib.algorithm.DiffException;
2221
import com.github.difflib.patch.Patch;
2322
import com.github.difflib.patch.PatchFailedException;
2423
import java.io.IOException;
@@ -58,7 +57,7 @@ public void tearDown() {
5857
}
5958

6059
@Test
61-
public void testPossibleDiffHangOnLargeDatasetDnaumenkoIssue26() throws IOException, DiffException, PatchFailedException {
60+
public void testPossibleDiffHangOnLargeDatasetDnaumenkoIssue26() throws IOException, PatchFailedException {
6261
ZipFile zip = new ZipFile(TestConstants.MOCK_FOLDER + "/large_dataset1.zip");
6362
List<String> original = readStringListFromInputStream(zip.getInputStream(zip.getEntry("ta")));
6463
List<String> revised = readStringListFromInputStream(zip.getInputStream(zip.getEntry("tb")));

0 commit comments

Comments
 (0)