Skip to content

Commit 76b4dbc

Browse files
author
dm.naumenko@gmail.com
committed
add toString() method
1 parent 68cff27 commit 76b4dbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/difflib/ChangeDelta.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,9 @@ public void verify(List<?> target) throws PatchFailedException {
7979
}
8080
}
8181

82+
@Override
83+
public String toString() {
84+
return "[ChangeDelta, position: " + getOriginal().getPosition() + ", lines: "
85+
+ getOriginal().getLines() + " to " + getRevised().getLines() + "]";
86+
}
8287
}

0 commit comments

Comments
 (0)