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
Priority: Low
Description
StatisticCacheconstructor accepts anymaxSizeandttlSeconds, including non-positive values that produce a cache that never retains anything.Solution
Throw
IllegalArgumentExceptionformaxSize <= 0orttlSeconds <= 0.Files
StatisticCache.javaPriority: Low