提交 bee1131e authored 作者: andrei's avatar andrei

Silence complier warning

上级 ac4a616e
...@@ -246,6 +246,7 @@ public class TransactionMap<K, V> { ...@@ -246,6 +246,7 @@ public class TransactionMap<K, V> {
return set(key, decisionMaker); return set(key, decisionMaker);
} }
@SuppressWarnings("unchecked")
private V set(K key, TxDecisionMaker decisionMaker) { private V set(K key, TxDecisionMaker decisionMaker) {
TransactionStore store = transaction.store; TransactionStore store = transaction.store;
Transaction blockingTransaction; Transaction blockingTransaction;
...@@ -264,7 +265,6 @@ public class TransactionMap<K, V> { ...@@ -264,7 +265,6 @@ public class TransactionMap<K, V> {
if (decision != MVMap.Decision.ABORT || blockingTransaction == null) { if (decision != MVMap.Decision.ABORT || blockingTransaction == null) {
transaction.blockingMap = null; transaction.blockingMap = null;
transaction.blockingKey = null; transaction.blockingKey = null;
//noinspection unchecked
return result == null ? null : (V) result.value; return result == null ? null : (V) result.value;
} }
decisionMaker.reset(); decisionMaker.reset();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论