Skip to content

Commit 880f8e5

Browse files
author
Vladimir Kotal
committed
preseve the original behavior of toLine() w.r.t. message
was not trimmed
1 parent 492158b commit 880f8e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public HistoryEntry(String revision, Date date, String author,
9292
}
9393

9494
public String getLine() {
95-
return getRevision() + " " + getDate() + " " + getAuthor() + " " + getMessage() + "\n";
95+
return String.join(" ",
96+
getRevision(), getDate().toString(), getAuthor(), message, "\n");
9697
}
9798

9899
public void dump() {

0 commit comments

Comments
 (0)