Skip to content

Refactor the Manifests class to an immutable #38

Description

@westonal

In line with objects should be immutable, refactor the Manifests class to be an immutable.

Acceptance criteria:

  • Manifests is immutable, that is no exposed methods will change its internal state
  • Manifests no longer implements Map<String, String>, though it should keep get method
  • Manifests provides a mutable map copy from a method: Map<string, string> asMap() providing an upgrade route for anyone relying on its previous implementation of Map
  • Remove @SuppressWarnings("PMD.TooManyMethods") from the class, as most of the old Map methods will be gone

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions