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

Deprecating useless Util.getPastTimeString #4174

Merged
merged 1 commit into from Aug 29, 2019

Conversation

jglick
Copy link
Member

@jglick jglick commented Aug 26, 2019

As of 25dcde3 this method does nothing useful, and does not do what its Javadoc still claimed.

Proposed changelog entries

  • None needed.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jglick jglick added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Aug 27, 2019
@oleg-nenashev
Copy link
Member

will merge tomorrow if no negative feedback

@oleg-nenashev oleg-nenashev added the skip-changelog Should not be shown in the changelog label Aug 29, 2019
@oleg-nenashev oleg-nenashev merged commit 174e938 into jenkinsci:master Aug 29, 2019
@jglick jglick deleted the Util.getPastTimeString branch August 29, 2019 12:51
MarkEWaite added a commit to MarkEWaite/docker-plugin that referenced this pull request Aug 27, 2023
Replaced with OpenRewrite command:

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
      -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-jenkins:RELEASE \
      -Drewrite.activeRecipes=org.openrewrite.jenkins.migrate.hudson.UtilGetPastTimeStringToGetTimeSpanString

jenkinsci/jenkins#4174 deprecates the API in a
2019 release of Jenkins core.

https://javadoc.jenkins.io/hudson/Util.html#getPastTimeString(long)
declares it deprecated.
MarkEWaite added a commit to jenkinsci/docker-plugin that referenced this pull request Aug 27, 2023
Replaced with OpenRewrite command:

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
      -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-jenkins:RELEASE \
      -Drewrite.activeRecipes=org.openrewrite.jenkins.migrate.hudson.UtilGetPastTimeStringToGetTimeSpanString

jenkinsci/jenkins#4174 deprecates the API in a
2019 release of Jenkins core.

https://javadoc.jenkins.io/hudson/Util.html#getPastTimeString(long)
declares it deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback skip-changelog Should not be shown in the changelog
Projects
None yet
3 participants