Skip to content

Commit 4e8e3ec

Browse files
committed
replace to be deprecated getWhen()
1 parent a1bb044 commit 4e8e3ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.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) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
2323
* Portions Copyright (c) 2019, Krystof Tulinger <[email protected]>.
2424
* Portions Copyright (c) 2023, Ric Harris <[email protected]>.
@@ -533,7 +533,7 @@ public void traverseHistory(File file, String sinceRevision, String tillRevision
533533
for (RevCommit commit : walk) {
534534
CommitInfo commitInfo = new CommitInfo(commit.getId().name(),
535535
commit.getId().abbreviate(GIT_ABBREV_LEN).name(),
536-
commit.getAuthorIdent().getWhen(), commit.getAuthorIdent().getName(),
536+
Date.from(commit.getAuthorIdent().getWhenAsInstant()), commit.getAuthorIdent().getName(),
537537
commit.getAuthorIdent().getEmailAddress(), commit.getFullMessage());
538538

539539
for (ChangesetVisitor visitor : visitors) {

0 commit comments

Comments
 (0)