Skip to content

SimpleStatistic constructor validation #16

@DiamondDagger590

Description

@DiamondDagger590

Description

SimpleStatistic accepts invalid maxSetSize values (e.g., 0 or negative values other than -1) and mismatched defaultValue/statisticType pairs at construction time.

Solution

Add compact constructor validation for maxSetSize (only -1 or positive) and delegate type checking to the existing StatisticRegistry.validateDefaultValue() pattern.

Files

  • SimpleStatistic.java

Priority: Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions