aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-04-20 15:13:08 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-04-20 15:17:46 +0200
commit17834a22cd3109a6f13c5c4445ad80d734b655f3 (patch)
treeaf5b8b1f2257fe0581b938b1439d0c50e352d5f0 /document
parent3936e47c2fc6a2460e540ec4b687423cd39cd289 (diff)
remove unneeded cast
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/update/MapValueUpdate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/main/java/com/yahoo/document/update/MapValueUpdate.java b/document/src/main/java/com/yahoo/document/update/MapValueUpdate.java
index edb40c6959b..de2fe1987a9 100644
--- a/document/src/main/java/com/yahoo/document/update/MapValueUpdate.java
+++ b/document/src/main/java/com/yahoo/document/update/MapValueUpdate.java
@@ -70,7 +70,7 @@ public class MapValueUpdate extends ValueUpdate {
}
}
weight = (Integer) update.applyTo(new IntegerFieldValue(weight)).getWrappedValue();
- wset.put((FieldValue) value, weight);
+ wset.put(value, weight);
if (wtype.removeIfZero() && update instanceof ArithmeticValueUpdate && weight == 0) {
wset.remove(value);
}