aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docproc/src/main/java/com/yahoo/docproc/proxy/ProxyDocumentUpdate.java14
-rw-r--r--document/src/main/java/com/yahoo/document/DocumentUpdate.java67
2 files changed, 1 insertions, 80 deletions
diff --git a/docproc/src/main/java/com/yahoo/docproc/proxy/ProxyDocumentUpdate.java b/docproc/src/main/java/com/yahoo/docproc/proxy/ProxyDocumentUpdate.java
index 517f44cb983..088035124b7 100644
--- a/docproc/src/main/java/com/yahoo/docproc/proxy/ProxyDocumentUpdate.java
+++ b/docproc/src/main/java/com/yahoo/docproc/proxy/ProxyDocumentUpdate.java
@@ -19,7 +19,6 @@ import java.util.Map;
*
* @author vegardh
*/
-// TODO Vespa 7 Remove all deprecated methods
public class ProxyDocumentUpdate extends DocumentUpdate implements DocumentOperationWrapper {
private DocumentUpdate docU;
@@ -47,13 +46,6 @@ public class ProxyDocumentUpdate extends DocumentUpdate implements DocumentOpera
}
@Override
- @Deprecated
- @SuppressWarnings( "deprecation" )
- public FieldUpdate getFieldUpdate(int index) {
- return docU.getFieldUpdate(index);
- }
-
- @Override
public FieldUpdate getFieldUpdate(String fieldName) {
String mapped = fieldMap.get(fieldName);
if (mapped==null) {
@@ -64,12 +56,6 @@ public class ProxyDocumentUpdate extends DocumentUpdate implements DocumentOpera
}
@Override
- @Deprecated
- @SuppressWarnings( "deprecation" )
- public List<FieldUpdate> getFieldUpdates() {
- return docU.getFieldUpdates();
- }
- @Override
public Collection<FieldUpdate> fieldUpdates() {
return docU.fieldUpdates();
}
diff --git a/document/src/main/java/com/yahoo/document/DocumentUpdate.java b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
index 0bbb57ec60b..8ae8fa60861 100644
--- a/document/src/main/java/com/yahoo/document/DocumentUpdate.java
+++ b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
@@ -38,7 +38,7 @@ import java.util.Optional;
* @see com.yahoo.document.update.FieldUpdate
* @see com.yahoo.document.update.ValueUpdate
*/
-//TODO Vespa 7 Remove all deprecated methods and use a map to avoid quadratic scaling on insert/update/remove
+//TODO Vespa 7 use a map to avoid quadratic scaling on insert/update/remove
public class DocumentUpdate extends DocumentOperation implements Iterable<FieldPathUpdate> {
@@ -158,17 +158,6 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
}
/**
- * Get an unmodifiable list of all field updates that this document update specifies.
- *
- * @return a list of all FieldUpdates in this DocumentUpdate
- * @deprecated Use fieldUpdates() instead.
- */
- @Deprecated
- public List<FieldUpdate> getFieldUpdates() {
- return Collections.unmodifiableList(fieldUpdates);
- }
-
- /**
* Get an unmodifiable collection of all field updates that this document update specifies.
*
* @return a collection of all FieldUpdates in this DocumentUpdate
@@ -178,17 +167,6 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
}
/**
- * Get an unmodifiable list of all field path updates this document update specifies.
- *
- * @return Returns a list of all field path updates in this document update.
- * @deprecated Use fieldPathUpdates() instead.
- */
- @Deprecated
- public List<FieldPathUpdate> getFieldPathUpdates() {
- return Collections.unmodifiableList(fieldPathUpdates);
- }
-
- /**
* Get an unmodifiable collection of all field path updates that this document update specifies.
*
* @return a collection of all FieldPathUpdates in this DocumentUpdate
@@ -214,36 +192,6 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
}
/**
- * Get the field update at the specified index in the list of field updates.
- *
- * @param index the index of the FieldUpdate to return
- * @return the FieldUpdate at the specified index
- * @throws IndexOutOfBoundsException if index is out of range
- * @deprecated use getFieldUpdate(Field field) instead.
- */
- @Deprecated
- public FieldUpdate getFieldUpdate(int index) {
- return fieldUpdates.get(index);
- }
-
- /**
- * Replaces the field update at the specified index in the list of field updates.
- *
- * @param index index of the FieldUpdate to replace
- * @param upd the FieldUpdate to be stored at the specified position
- * @return the FieldUpdate previously at the specified position
- * @throws IndexOutOfBoundsException if index is out of range
- * @deprecated Use removeFieldUpdate/addFieldUpdate instead
- */
- @Deprecated
- public FieldUpdate setFieldUpdate(int index, FieldUpdate upd) {
- FieldUpdate old = fieldUpdates.get(index);
- fieldUpdates.set(index, upd);
-
- return old;
- }
-
- /**
* Returns the update for a field
*
* @param field the field to return the update of
@@ -372,19 +320,6 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
}
}
- /**
- * Removes the field update at the specified position in the list of field updates.
- *
- * @param index the index of the FieldUpdate to remove
- * @return the FieldUpdate previously at the specified position
- * @throws IndexOutOfBoundsException if index is out of range
- * @deprecated use removeFieldUpdate(Field field) instead.
- */
- @Deprecated
- public FieldUpdate removeFieldUpdate(int index) {
- return fieldUpdates.remove(index);
- }
-
public FieldUpdate removeFieldUpdate(Field field) {
for (Iterator<FieldUpdate> it = fieldUpdates.iterator(); it.hasNext();) {
FieldUpdate fieldUpdate = it.next();