Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-73775] Replace deprecated call to JGit setLastModified(long) #2572

Merged
merged 1 commit into from
Sep 15, 2024

Commits on Sep 14, 2024

  1. [JENKINS-73775] Replace deprecated call to JGit setLastModified(long)

    JGit 5 deprecated the DirCacheEntry.setLastModified(long) method and
    recommends DirCacheEntry.setLastModified(Instant).  JGit 7.0.0 removes
    DirCacheEntry.setLastModified(long).  This change will work with old
    versions of JGit and JGit 7.0.0 because the replacement method is
    available with older versions and the most recent release.
    
    Javadoc for JGit 6.9.0 is available at
    https://javadoc.io/doc/org.eclipse.jgit/org.eclipse.jgit/6.9.0.202403050737-r/org.eclipse.jgit/org/eclipse/jgit/dircache/DirCacheEntry.html
    
    Without this change, users that try to run the Git portion of Blue Ocean
    may see a method not found exception that will fail the operation.
    MarkEWaite committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    67ab912 View commit details
    Browse the repository at this point in the history