This commit is contained in:
Looly
2020-05-07 17:37:02 +08:00
parent 987d9e35f5
commit 8289e6a8da
3 changed files with 31 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ public class TimedCache<K, V> extends AbstractCache<K, V> {
* @param timeout 超时(过期)时长,单位毫秒
*/
public TimedCache(long timeout) {
this(timeout, new HashMap<K, CacheObj<K, V>>());
this(timeout, new HashMap<>());
}
/**