diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-05-13 15:53:53 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-05-13 15:53:53 +0200 |
commit | f05f428ccdef7a916fd90f247315784eb5dff05c (patch) | |
tree | dd852fd4c2264f5bbabd5eb6e8dc13e1151b8683 /document/src/main/java/com | |
parent | 705b8d9f0f4631bf7c953ae996190cb4d886039a (diff) |
Non-functional changes only
Diffstat (limited to 'document/src/main/java/com')
-rw-r--r-- | document/src/main/java/com/yahoo/vespaxmlparser/ConditionalFeedOperation.java | 3 | ||||
-rw-r--r-- | document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/document/src/main/java/com/yahoo/vespaxmlparser/ConditionalFeedOperation.java b/document/src/main/java/com/yahoo/vespaxmlparser/ConditionalFeedOperation.java index e7a06560532..9e69390acd4 100644 --- a/document/src/main/java/com/yahoo/vespaxmlparser/ConditionalFeedOperation.java +++ b/document/src/main/java/com/yahoo/vespaxmlparser/ConditionalFeedOperation.java @@ -4,7 +4,9 @@ package com.yahoo.vespaxmlparser; import com.yahoo.document.TestAndSetCondition; public class ConditionalFeedOperation extends FeedOperation { + private final TestAndSetCondition condition; + protected ConditionalFeedOperation(Type type) { super(type); this.condition = TestAndSetCondition.NOT_PRESENT_CONDITION; @@ -18,4 +20,5 @@ public class ConditionalFeedOperation extends FeedOperation { public TestAndSetCondition getCondition() { return condition; } + } diff --git a/document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java b/document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java index f3ddbc9196c..408741e64f4 100644 --- a/document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java +++ b/document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java @@ -5,7 +5,9 @@ import com.yahoo.document.Document; import com.yahoo.document.TestAndSetCondition; public class DocumentFeedOperation extends ConditionalFeedOperation { + private final Document document; + public DocumentFeedOperation(Document document) { super(Type.DOCUMENT); this.document = document; @@ -20,4 +22,6 @@ public class DocumentFeedOperation extends ConditionalFeedOperation { public Document getDocument() { return document; } + } + |