Skip to content

Minor refactoring to use newer Java features#1191

Open
StefanSpieker wants to merge 1 commit intojenkinsci:mainfrom
StefanSpieker:minor_refactoring
Open

Minor refactoring to use newer Java features#1191
StefanSpieker wants to merge 1 commit intojenkinsci:mainfrom
StefanSpieker:minor_refactoring

Conversation

@StefanSpieker
Copy link
Copy Markdown
Contributor

@StefanSpieker StefanSpieker commented Mar 26, 2026

Minor refactoring to use newer Java features:

  • use record
  • make use of enhanced instanceof
  • use StandardCharsets instead of deprecated com.google.common.base.Charsets

Testing done

Only unit tests.

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

@StefanSpieker StefanSpieker requested a review from a team as a code owner March 26, 2026 21:47
@timja timja added the chore a PR that adds to maintenance - used by Release Drafter label Mar 26, 2026
Copy link
Copy Markdown
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

Thanks!

@timja timja enabled auto-merge (squash) March 26, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore a PR that adds to maintenance - used by Release Drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants