Skip to content

StatisticCache constructor input validation #17

Description

@DiamondDagger590

Description

StatisticCache constructor accepts any maxSize and ttlSeconds, including non-positive values that produce a cache that never retains anything.

Solution

Throw IllegalArgumentException for maxSize <= 0 or ttlSeconds <= 0.

Files

  • StatisticCache.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