Skip to content

Commit ae9952a

Browse files
author
Vladimir Kotal
committed
add toString() to aid debugging
1 parent 8c5dcc6 commit ae9952a

File tree

1 file changed

+5
-0
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/history

1 file changed

+5
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/History.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,9 @@ public boolean equals(Object o) {
141141
public int hashCode() {
142142
return getHistoryEntries().hashCode() * getRenamedFiles().hashCode();
143143
}
144+
145+
@Override
146+
public String toString() {
147+
return this.getHistoryEntries().toString() + ", renamed files: " + this.getRenamedFiles().toString();
148+
}
144149
}

0 commit comments

Comments
 (0)