Skip to content

Migrate to commons-lang3#2804

Closed
cronik wants to merge 1 commit intojenkinsci:masterfrom
cronik:feature/commons-lang3
Closed

Migrate to commons-lang3#2804
cronik wants to merge 1 commit intojenkinsci:masterfrom
cronik:feature/commons-lang3

Conversation

@cronik
Copy link
Copy Markdown
Contributor

@cronik cronik commented Jan 31, 2026

This change adds the commons-lang3-api plugin and updates imports from org.apache.commons.lang to org.apache.commons.lang3. Replaced deprecated methods:

-StringUtils.defaultString -> Objects.toString

  • RandomStringUtils.random -> RandomStringUtils.secure().next

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

This change adds the `commons-lang3-api` plugin and updates imports from
`org.apache.commons.lang` to `org.apache.commons.lang3`. Replaced deprecated methods:

-`StringUtils.defaultString` -> `Objects.toString`
- `RandomStringUtils.random` -> `RandomStringUtils.secure().next`
@cronik cronik requested a review from a team as a code owner January 31, 2026 20:50
@cronik
Copy link
Copy Markdown
Contributor Author

cronik commented Mar 22, 2026

Duplicated #2797

@cronik cronik closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant