Skip to content

remove usages of commons-lang from core#500

Merged
jglick merged 4 commits intojenkinsci:masterfrom
mawinter69:date-formatter
May 28, 2025
Merged

remove usages of commons-lang from core#500
jglick merged 4 commits intojenkinsci:masterfrom
mawinter69:date-formatter

Conversation

@mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented May 26, 2025

To be able to remove commons-lang from core all direct and indirect usages must be replaced with commons-lang3 or native Java

  • use XS_DATETIME_FORMATTER2 instead of deprecated XS_DATETIME_FORMATTER from core
  • replaced commons-lang with native Java

Proposed changelog entries

  • remove usages of commons-lang from core

Submitter checklist

  • JIRA issue is well described
  • Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change).
    * Use the Internal: prefix if the change has no user-visible impact (API, test frameworks, etc.)
  • Appropriate autotests or explanation to why this change has no tests

@mawinter69 mawinter69 requested a review from a team as a code owner May 26, 2025 18:23
@mawinter69 mawinter69 marked this pull request as draft May 26, 2025 18:25
@mawinter69 mawinter69 changed the title use XS_DATETIME_FORMATTER2 instead of deprecated XS_DATETIME_FORMATTER remove usages of commons-lang from core May 26, 2025
@mawinter69 mawinter69 marked this pull request as ready for review May 26, 2025 18:38
@jglick jglick merged commit 98130aa into jenkinsci:master May 28, 2025
17 checks passed
} else if (interval.endsWith("ms")) {
units = TimeUnit.SECONDS;
interval = StringUtils.removeEnd(interval, "ms");
interval = interval.substring(0, interval.length() - 1);
Copy link

@szjozsef szjozsef May 29, 2025

Choose a reason for hiding this comment

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

Here should not be: interval = interval.substring(0, interval.length() - 2); ?

Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants