Skip to content

Modernize with Java 17 features and improve performance #1169

@gounthar

Description

@gounthar

What feature do you want to see added?

Looking at jenkinsci/embeddable-build-status-plugin#419, I'm wondering if:

  • This kind of change is already part of our UpgradeNextMajorParentVersion recipe
  • If not, then shouldn't we add, as in the linked PR:
    • Modernize collection initialization using Java 17's Map.of() for better performance
    • Convert instance-level HashMap initializers to static final immutable maps
    • Add proper null safety handling for immutable map usage

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions