提交 17dcd2eb authored 作者: andrei's avatar andrei

One more touch to synthetic access and indentation

上级 117b640f
...@@ -447,6 +447,7 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -447,6 +447,7 @@ public class MVMap<K, V> extends AbstractMap<K, V>
* @param value the expected value * @param value the expected value
* @return true if the item was removed * @return true if the item was removed
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public boolean remove(Object key, Object value) { public boolean remove(Object key, Object value) {
EqualsDecisionMaker<V> decisionMaker = new EqualsDecisionMaker<>(valueType, (V)value); EqualsDecisionMaker<V> decisionMaker = new EqualsDecisionMaker<>(valueType, (V)value);
...@@ -1500,6 +1501,7 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -1500,6 +1501,7 @@ public class MVMap<K, V> extends AbstractMap<K, V>
int index = pos.index; int index = pos.index;
CursorPos tip = pos; CursorPos tip = pos;
pos = pos.parent; pos = pos.parent;
@SuppressWarnings("unchecked")
V result = index < 0 ? null : (V)p.getValue(index); V result = index < 0 ? null : (V)p.getValue(index);
Decision decision = decisionMaker.decide(result, value); Decision decision = decisionMaker.decide(result, value);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论