Skip to content

Immutable Piece Move providers #3

@rajat-g

Description

@rajat-g

Instead of explicitly mentioning/creating ImmutableList every time in Test Helpers while creating Piece. This should be the logic of Piece that is it should copy the passed PieceMove Provider and should not leak reference from the getter method also.
That is:

A parameterized constructor should initialize all the fields performing a deep copy so that data members can’t be modified with an object reference.

Deep Copy of objects should be performed in the getter methods to return a copy rather than returning the actual object reference)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions