Confirmed automated tests continue to pass with the change and that the modified line is executed in the automated tests.
Did not confirm that there is an assertion specifically targeting the getWhenDisabledBySystemString, but the deprecation message says that the API calls are equivalent.
Submitter checklist
[x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
[x] Ensure that the pull request title represents the desired changelog entry
[x] Please describe what you did
[x] Link to relevant issues in GitHub or Jira
[x] Link to relevant pull requests, esp. upstream and downstream changes
[x] Ensure you have provided tests - that demonstrates feature works or fixes the issue
Replace deprecated getPastTimeString with getTimeSpanString
Replaced with OpenRewrite command:
https://github.com/jenkinsci/jenkins/pull/4174 deprecates the API in a 2019 release of Jenkins core.
https://javadoc.jenkins.io/hudson/Util.html#getPastTimeString(long) declares it deprecated.
Testing done
Confirmed automated tests continue to pass with the change and that the modified line is executed in the automated tests.
Did not confirm that there is an assertion specifically targeting the
getWhenDisabledBySystemString
, but the deprecation message says that the API calls are equivalent.Submitter checklist