aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@vespa.ai>2024-05-02 12:05:52 +0200
committerJon Bratseth <bratseth@vespa.ai>2024-05-02 12:05:52 +0200
commit38a69258b1ef72cff0e9acb7b2f24f3545c50629 (patch)
tree90a65f65084464c026bd31994e257e5de3f4ae02 /document
parent9b293419b8324e551fed744527d7423c401e07f2 (diff)
Cleanup: No functional changes
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/DocumentUpdate.java9
-rw-r--r--document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java1
2 files changed, 2 insertions, 8 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentUpdate.java b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
index 20d9b352d2d..d8d8c02c43b 100644
--- a/document/src/main/java/com/yahoo/document/DocumentUpdate.java
+++ b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
@@ -188,13 +188,8 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
return Collections.unmodifiableCollection(fieldPathUpdates);
}
- /** Returns the type of the document this updates
- *
- * @return The document type of the document
- */
- public DocumentType getDocumentType() {
- return documentType;
- }
+ /** Returns the type of the document this updates. */
+ public DocumentType getDocumentType() { return documentType; }
/**
* Sets the document type. Use only while deserializing - changing the document type after creation
diff --git a/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java b/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java
index 7be50b58b61..bd977520b66 100644
--- a/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java
+++ b/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java
@@ -270,7 +270,6 @@ public class DocumentUpdateTestCase {
DocumentUpdate update = new DocumentUpdate(docType, new DocumentId("id:ns:my_type::foo:"));
update.addFieldUpdate(FieldUpdate.createAssign(field, new IntegerFieldValue(1)));
update.addFieldUpdate(FieldUpdate.createAssign(field, new IntegerFieldValue(2)));
-
assertEquals(1, update.fieldUpdates().size());
FieldUpdate fieldUpdate = update.getFieldUpdate(field);
assertNotNull(fieldUpdate);