Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit c0341d6

Browse files
committed
add toString() method
1 parent b930616 commit c0341d6

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)