Skip to content

Commit 3abe03f

Browse files
committed
remove the tags parameter
1 parent e7bf9b5 commit 3abe03f

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2006, 2022, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2019, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.history;
@@ -84,7 +84,7 @@ public HistoryEntry(String revision, Date date, String author, String message, b
8484
}
8585

8686
public HistoryEntry(String revision, Date date, String author,
87-
String tags, String message, boolean active, Collection<String> files) {
87+
String message, boolean active, Collection<String> files) {
8888
this(revision, date, author, message, active);
8989
this.files.addAll(files);
9090
}

opengrok-indexer/src/test/java/org/opengrok/indexer/history/GitRepositoryTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -527,37 +527,37 @@ void testHistory(boolean renamedHandling) throws Exception {
527527

528528
List<HistoryEntry> entries = List.of(
529529
new HistoryEntry("84599b3c", new Date(1485438707000L),
530-
"Kryštof Tulinger <[email protected]>", null,
530+
"Kryštof Tulinger <[email protected]>",
531531
" renaming directories\n\n", true,
532532
Set.of(File.separator + Paths.get("git", "moved2", "renamed2.c"))),
533533
new HistoryEntry("67dfbe26", new Date(1485263397000L),
534-
"Kryštof Tulinger <[email protected]>", null,
534+
"Kryštof Tulinger <[email protected]>",
535535
" renaming renamed -> renamed2\n\n", true,
536536
Set.of(File.separator + Paths.get("git", "moved", "renamed2.c"))),
537537
new HistoryEntry("1086eaf5", new Date(1485263368000L),
538-
"Kryštof Tulinger <[email protected]>", null,
538+
"Kryštof Tulinger <[email protected]>",
539539
" adding some lines into renamed.c\n\n", true,
540540
Set.of(File.separator + Paths.get("git", "moved", "renamed.c"))),
541541
new HistoryEntry("b6413947", new Date(1485263264000L),
542-
"Kryštof Tulinger <[email protected]>", null,
542+
"Kryštof Tulinger <[email protected]>",
543543
" moved renamed.c to new location\n\n", true,
544544
Set.of(File.separator + Paths.get("git", "moved", "renamed.c"))),
545545
new HistoryEntry("ce4c98ec", new Date(1485263232000L), // start in the sub-test below
546-
"Kryštof Tulinger <[email protected]>", null,
546+
"Kryštof Tulinger <[email protected]>",
547547
" adding simple file for renamed file testing\n\n", true,
548548
Set.of(File.separator + Paths.get("git", "renamed.c"))),
549549
new HistoryEntry("aa35c258", new Date(1218571965000L),
550-
"Trond Norbye <[email protected]>", null,
550+
"Trond Norbye <[email protected]>",
551551
" Add lint make target and fix lint warnings\n\n", true,
552552
Set.of(File.separator + Paths.get("git", "Makefile"),
553553
File.separator + Paths.get("git", "main.c"))),
554554
new HistoryEntry("84821564", new Date(1218571643000L),
555-
"Trond Norbye <[email protected]>", null,
555+
"Trond Norbye <[email protected]>",
556556
" Add the result of a make on Solaris x86\n\n", true,
557557
Set.of(File.separator + Paths.get("git", "main.o"),
558558
File.separator + Paths.get("git", "testsprog"))),
559559
new HistoryEntry("bb74b7e8", new Date(1218571573000L),
560-
"Trond Norbye <[email protected]>", null,
560+
"Trond Norbye <[email protected]>",
561561
" Added a small test program\n\n", true,
562562
Set.of(File.separator + Paths.get("git", "Makefile"),
563563
File.separator + Paths.get("git", "header.h"),

opengrok-indexer/src/test/java/org/opengrok/indexer/history/HistoryEntryTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public void testEquals() {
274274
@Test
275275
public void testEqualsWithFilesInstance() {
276276
HistoryEntry e = new HistoryEntry(historyRevision, historyDate,
277-
historyAuthor, null, historyMessage, true,
277+
historyAuthor, historyMessage, true,
278278
Set.of(File.separator + Paths.get("foo", "main.o"),
279279
File.separator + Paths.get("foo", "testsprog")));
280280
assertNotSame(e, instance);
@@ -286,9 +286,9 @@ public void testEqualsWithFilesPositive() {
286286
Set<String> files = Set.of(File.separator + Paths.get("foo", "main.o"),
287287
File.separator + Paths.get("foo", "testsprog"));
288288
HistoryEntry e1 = new HistoryEntry(historyRevision, historyDate,
289-
historyAuthor, null, historyMessage, true, files);
289+
historyAuthor, historyMessage, true, files);
290290
HistoryEntry e2 = new HistoryEntry(historyRevision, historyDate,
291-
historyAuthor, null, historyMessage, true, files);
291+
historyAuthor, historyMessage, true, files);
292292
assertNotSame(e1, e2);
293293
assertEquals(e1, e2);
294294
}
@@ -298,10 +298,10 @@ public void testEqualsWithFilesNegative() {
298298
String file1 = File.separator + Paths.get("foo", "main.o");
299299
String file2 = File.separator + Paths.get("foo", "testsprog");
300300
HistoryEntry e1 = new HistoryEntry(historyRevision, historyDate,
301-
historyAuthor, null, historyMessage, true,
301+
historyAuthor, historyMessage, true,
302302
Set.of(file1, file2));
303303
HistoryEntry e2 = new HistoryEntry(historyRevision, historyDate,
304-
historyAuthor, null, historyMessage, true,
304+
historyAuthor, historyMessage, true,
305305
Set.of(file1, file2 + "X"));
306306
assertNotSame(e1, e2);
307307
assertNotEquals(e1, e2);

opengrok-indexer/src/test/java/org/opengrok/indexer/history/HistoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
class HistoryTest {
4242
private final List<HistoryEntry> entries = List.of(
4343
new HistoryEntry("84599b3c", new Date(1485438707000L),
44-
"Kryštof Tulinger <[email protected]>", null,
44+
"Kryštof Tulinger <[email protected]>",
4545
" renaming directories\n\n", true,
4646
Set.of(File.separator + Paths.get("git", "moved2", "renamed2.c"))),
4747
new HistoryEntry("67dfbe26", new Date(1485263397000L),
48-
"Kryštof Tulinger <[email protected]>", null,
48+
"Kryštof Tulinger <[email protected]>",
4949
" renaming renamed -> renamed2\n\n", true,
5050
Set.of(File.separator + Paths.get("git", "moved", "renamed2.c"))));
5151

0 commit comments

Comments
 (0)