fix lock bug

This commit is contained in:
Looly 2020-12-07 18:39:21 +08:00
parent 97f1e8b3dd
commit 775afa68cc
2 changed files with 3 additions and 2 deletions

View File

@ -15,8 +15,9 @@
* 【cache 】 修复Cache中get重复misCount计数问题issue#1281@Github
* 【poi 】 修复sax读取自定义格式单元格无法识别日期类型的问题issue#1283@Github
* 【core 】 修复CollUtil.get越界问题issue#1292@Github
* 【json 】 修复TemporalAccessorUtil无法格式化LocalDate带时间问题issue#1289@Github
* 【core 】 修复TemporalAccessorUtil无法格式化LocalDate带时间问题issue#1289@Github
* 【json 】 修复自定义日期格式的LocalDateTime没有包装引号问题issue#1289@Github
* 【cache 】 get中unlock改为unlockReadissue#1294@Github
-------------------------------------------------------------------------------------------------------------

View File

@ -174,7 +174,7 @@ public abstract class AbstractCache<K, V> implements Cache<K, V> {
return co.get(isUpdateLastAccess);
}
} finally {
lock.unlock(stamp);
lock.unlockRead(stamp);
}
// 过期