mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
package cn.hutool.cache.impl;
|
package cn.hutool.cache.impl;
|
||||||
|
|
||||||
import java.util.WeakHashMap;
|
import cn.hutool.core.map.WeakConcurrentMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 弱引用缓存<br>
|
* 弱引用缓存<br>
|
||||||
@@ -22,6 +22,6 @@ public class WeakCache<K, V> extends TimedCache<K, V>{
|
|||||||
* @param timeout 超时时常,单位毫秒,-1或0表示无限制
|
* @param timeout 超时时常,单位毫秒,-1或0表示无限制
|
||||||
*/
|
*/
|
||||||
public WeakCache(long timeout) {
|
public WeakCache(long timeout) {
|
||||||
super(timeout, new WeakHashMap<>());
|
super(timeout, new WeakConcurrentMap<>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
pom.xml
1
pom.xml
@@ -97,6 +97,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>${compile.version}</source>
|
<source>${compile.version}</source>
|
||||||
<target>${compile.version}</target>
|
<target>${compile.version}</target>
|
||||||
|
<compilerArgument>-Xlint:unchecked</compilerArgument>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Javadoc -->
|
<!-- Javadoc -->
|
||||||
|
Reference in New Issue
Block a user