mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
992477f521
commit
7bd5aaab7c
@ -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 -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user