Skip to content

Remove the unnecessary Set and use enum directly. #10349

@beliefer

Description

@beliefer

Description

Currently, Spillers declare two set.

public static final Set<Spiller.Phase> PHASE_SET_SHRINK_ONLY =
    Collections.singleton(Spiller.Phase.SHRINK);

public static final Set<Spiller.Phase> PHASE_SET_SPILL_ONLY =
    Collections.singleton(Spiller.Phase.SPILL);

After my investigation, we can avoid using Set here, Enum is better way.

Gluten version

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions