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
Priority: Low
Description
SimpleStatisticaccepts invalidmaxSetSizevalues (e.g., 0 or negative values other than -1) and mismatcheddefaultValue/statisticTypepairs at construction time.Solution
Add compact constructor validation for
maxSetSize(only -1 or positive) and delegate type checking to the existingStatisticRegistry.validateDefaultValue()pattern.Files
SimpleStatistic.javaPriority: Low