File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,19 @@ public boolean equals(Object o) {
233
233
}
234
234
HistoryEntry that = (HistoryEntry ) o ;
235
235
236
+ String thisMessage = this .getMessage ();
237
+ if (thisMessage != null ) {
238
+ thisMessage = thisMessage .stripLeading ().stripTrailing ();
239
+ }
240
+ String thatMessage = that .getMessage ();
241
+ if (thatMessage != null ) {
242
+ thatMessage = thatMessage .stripLeading ().stripTrailing ();
243
+ }
244
+
236
245
return checkEquals (this .getAuthor (), that .getAuthor ()) &&
237
246
checkEquals (this .getRevision (), that .getRevision ()) &&
238
247
checkEquals (this .getDate (), that .getDate ()) &&
239
- checkEquals (this . getMessage (), that . getMessage () ) &&
248
+ checkEquals (thisMessage , thatMessage ) &&
240
249
checkEquals (this .getFiles (), that .getFiles ()) &&
241
250
checkEquals (this .getTags (), that .getTags ());
242
251
}
You can’t perform that action at this time.
0 commit comments