diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-07-20 14:19:11 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-07-20 14:19:11 +0200 |
commit | e2dff4c7357ea5fcafb68a1677035c19bdde8f8a (patch) | |
tree | 7cfd4df4e7ab2d5e336c7d2f89f811a16c917579 /document | |
parent | e4eeaf0806416d5e15cfe0e9300f246e6b3093e7 (diff) |
Remove a restriction that is not necessary since FieldUpdates are applied first.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/main/java/com/yahoo/document/DocumentUpdate.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentUpdate.java b/document/src/main/java/com/yahoo/document/DocumentUpdate.java index 91e4a7091b8..70c5410534e 100644 --- a/document/src/main/java/com/yahoo/document/DocumentUpdate.java +++ b/document/src/main/java/com/yahoo/document/DocumentUpdate.java @@ -129,8 +129,6 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP * @throws IllegalArgumentException if the document does not have the same document type as this update */ public DocumentUpdate prune(Document doc) { - if ( ! fieldPathUpdates.isEmpty()) return this; - verifyType(doc); for (Iterator<FieldUpdate> iter = fieldUpdates.iterator(); iter.hasNext();) { |