summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-11-20 13:20:33 +0100
committerJon Bratseth <bratseth@oath.com>2018-11-20 13:20:33 +0100
commit2343bf2644506b6fa385af92631d48ff9c16f915 (patch)
treeb13c488696112d4567b78adeee3be05c48002680
parenta549b3d81757eb3670982c936c1312a939003816 (diff)
Deprecation cleanup
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/ConfigModel.java3
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/ContainerModel.java1
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/docproc/DocprocChain.java4
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/content/IndexingAndDocprocRoutingTest.java3
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/ClustersStatus.java12
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/VipStatus.java8
-rw-r--r--document/src/main/java/com/yahoo/document/Document.java7
-rwxr-xr-xdocument/src/main/java/com/yahoo/document/DocumentType.java14
-rw-r--r--document/src/main/java/com/yahoo/document/Field.java22
-rw-r--r--document/src/main/java/com/yahoo/document/fieldset/BodyFields.java10
-rw-r--r--document/src/main/java/com/yahoo/document/fieldset/HeaderFields.java11
-rw-r--r--document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializer42.java2
-rw-r--r--jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpRequestFactoryTest.java2
13 files changed, 42 insertions, 57 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/ConfigModel.java b/config-model/src/main/java/com/yahoo/config/model/ConfigModel.java
index b4a5a865b9e..761c3645bad 100644
--- a/config-model/src/main/java/com/yahoo/config/model/ConfigModel.java
+++ b/config-model/src/main/java/com/yahoo/config/model/ConfigModel.java
@@ -39,10 +39,7 @@ public abstract class ConfigModel {
* This default implementation does nothing.
*
* @param configModelRepo The ConfigModelRepo of the VespaModel
- * @deprecated This will go away in the next Vespa major release. Instead, inject the models you depend on
- * in your config model constructor.
*/
- @Deprecated
public void initialize(ConfigModelRepo configModelRepo) { return; }
/**
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerModel.java b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerModel.java
index cefccca5ec8..de391df5050 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerModel.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerModel.java
@@ -42,7 +42,6 @@ public class ContainerModel extends ConfigModel {
}
@Override
- @Deprecated
public void initialize(ConfigModelRepo configModelRepo) {
List<AbstractSearchCluster> searchClusters = Content.getSearchClusters(configModelRepo);
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/docproc/DocprocChain.java b/config-model/src/main/java/com/yahoo/vespa/model/container/docproc/DocprocChain.java
index a970cceabf4..4eb3fee83d8 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/docproc/DocprocChain.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/docproc/DocprocChain.java
@@ -10,9 +10,10 @@ import java.util.Map;
import static com.yahoo.container.core.ChainsConfig.Chains.Type;
/**
- * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
+ * @author Einar M R Rosenvinge
*/
public class DocprocChain extends Chain<DocumentProcessor> {
+
private Map<Pair<String, String>, String> fieldNameSchemaMap;
private static final Type.Enum TYPE = Type.Enum.DOCPROC;
@@ -40,4 +41,5 @@ public class DocprocChain extends Chain<DocumentProcessor> {
public Type.Enum getType() {
return TYPE;
}
+
}
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/content/IndexingAndDocprocRoutingTest.java b/config-model/src/test/java/com/yahoo/vespa/model/content/IndexingAndDocprocRoutingTest.java
index 6fe0a807b77..071d51aae52 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/content/IndexingAndDocprocRoutingTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/content/IndexingAndDocprocRoutingTest.java
@@ -23,8 +23,7 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
/**
- * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
- * @since 5.1.13
+ * @author Einar M R Rosenvinge
*/
public class IndexingAndDocprocRoutingTest extends ContentBaseTest {
@Test
diff --git a/container-core/src/main/java/com/yahoo/container/handler/ClustersStatus.java b/container-core/src/main/java/com/yahoo/container/handler/ClustersStatus.java
index 484628397c0..4f4d4635933 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/ClustersStatus.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/ClustersStatus.java
@@ -60,18 +60,14 @@ public class ClustersStatus extends AbstractComponent {
}
}
- /**
- @deprecated Use setUp(String) instead
- */
- @Deprecated
+ /** @deprecated use setUp(String) instead */
+ @Deprecated // TODO: Remove on Vespa 8
public void setUp(Object clusterIdentifier) {
setUp((String) clusterIdentifier);
}
- /**
- @deprecated Use setDown(String) instead
- */
- @Deprecated
+ /** @deprecated use setDown(String) instead */
+ @Deprecated // TODO: Remove on Vespa 8
public void setDown(Object clusterIdentifier) {
setDown((String) clusterIdentifier);
}
diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
index ebb56af8853..3b71ffff616 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
@@ -58,14 +58,14 @@ public class VipStatus {
clustersStatus.setDown(clusterIdentifier);
}
- /** @deprecated Use addToRotation(String) instead */
- @Deprecated
+ /** @deprecated use addToRotation(String) instead */
+ @Deprecated // TODO: Remove on Vespa 8
public void addToRotation(Object clusterIdentifier) {
addToRotation((String) clusterIdentifier);
}
- /** @deprecated Use removeFromRotation(String) instead */
- @Deprecated
+ /** @deprecated use removeFromRotation(String) instead */
+ @Deprecated // TODO: Remove on Vespa 8
public void removeFromRotation(Object clusterIdentifier) {
removeFromRotation((String) clusterIdentifier);
}
diff --git a/document/src/main/java/com/yahoo/document/Document.java b/document/src/main/java/com/yahoo/document/Document.java
index 51a1602516e..85049baf8b0 100644
--- a/document/src/main/java/com/yahoo/document/Document.java
+++ b/document/src/main/java/com/yahoo/document/Document.java
@@ -99,9 +99,12 @@ public class Document extends StructuredFieldValue {
docId = id;
}
- @Deprecated
+ /** @deprecated do not use: Use getField(), getFieldValue() or iterator() instead */
+ @Deprecated // TODO: Remove on Vespa 8
public Struct getHeader() { return header; }
- @Deprecated
+
+ /** @deprecated do not use: Use getField(), getFieldValue() or iterator() instead */
+ @Deprecated // TODO: Remove on Vespa 8
public Struct getBody() { return body; }
@Override
diff --git a/document/src/main/java/com/yahoo/document/DocumentType.java b/document/src/main/java/com/yahoo/document/DocumentType.java
index 4356745b77f..1aa1fed7659 100755
--- a/document/src/main/java/com/yahoo/document/DocumentType.java
+++ b/document/src/main/java/com/yahoo/document/DocumentType.java
@@ -26,10 +26,10 @@ import java.util.Set;
* implicitly acquiring their fields as it's own. If a document is not set to inherit
* any document, it will always inherit the document "document.0".</p>
*
- * @author <a href="mailto:thomasg@yahoo-inc.com">Thomas Gundersen</a>
+ * @author Thomas Gundersen
* @author bratseth
*/
-// TODO Vespa 8 Remove header/body concept
+// TODO: Remove header/body concept on Vespa 8
public class DocumentType extends StructuredDataType {
public static final int classId = registerClass(Ids.document + 58, DocumentType.class);
@@ -102,19 +102,21 @@ public class DocumentType extends StructuredDataType {
/**
* Provides the Struct describing the fields in the document.
- * @return Struct describing the document fields.
+ *
+ * @return a struct describing the document fields.
*/
public StructDataType contentStruct() {
return headerType;
}
- // Use contentStruct instead
- @Deprecated
+ /** @deprecated use contentStruct instead */
+ @Deprecated // TODO: Remove on Vespa 8
public StructDataType getHeaderType() {
return contentStruct();
}
- @Deprecated
+ @Deprecated // TODO: Remove on Vespa 8
+ /** @deprecated use contentStruct instead */
public StructDataType getBodyType() {
return bodyType;
}
diff --git a/document/src/main/java/com/yahoo/document/Field.java b/document/src/main/java/com/yahoo/document/Field.java
index 4d00e79b555..5d3d148d832 100644
--- a/document/src/main/java/com/yahoo/document/Field.java
+++ b/document/src/main/java/com/yahoo/document/Field.java
@@ -16,7 +16,7 @@ import java.io.Serializable;
* @author Thomas Gundersen
* @author bratseth
*/
-//TODO Vespa 8 Remove header/body concept
+// TODO: Remove header/body concept on Vespa 8
public class Field extends FieldBase implements FieldSet, Comparable, Serializable {
protected DataType dataType;
@@ -176,7 +176,7 @@ public class Field extends FieldBase implements FieldSet, Comparable, Serializab
}
}
- /** @return Returns the datatype of the field */
+ /** Returns the datatype of the field */
public final DataType getDataType() {
return dataType;
}
@@ -184,10 +184,10 @@ public class Field extends FieldBase implements FieldSet, Comparable, Serializab
/**
* Set the data type of the field. This will cause recalculation of fieldid for version 7+.
*
- * @deprecated do not use
* @param type The new type of the field.
+ * @deprecated do not use
*/
- @Deprecated // Do not remove on Vespa 6
+ @Deprecated // TODO: Remove on Vespa 8
public void setDataType(DataType type) {
dataType = type;
fieldId = calculateIdV7(null);
@@ -215,20 +215,14 @@ public class Field extends FieldBase implements FieldSet, Comparable, Serializab
return forcedId;
}
- /**
- * NB: Has no longer any semantic meaning as this is no longer an aspect with a field.
- * @return Returns true if this field should be a part of "header" serializations.
- */
- @Deprecated
+ /** @deprecated this has no longer any semantic meaning as this is no longer an aspect with a field */
+ @Deprecated // TODO: Remove on Vespa 8
public boolean isHeader() {
return isHeader;
}
- /**
- * NB: Has no longer any semantic meaning as this is no longer an aspect with a field.
- * Sets whether this is a header field
- */
- @Deprecated
+ /** @deprecated this has no longer any semantic meaning as this is no longer an aspect with a field */
+ @Deprecated // TODO: Remove on Vespa 8
public void setHeader(boolean header) {
this.isHeader = header;
}
diff --git a/document/src/main/java/com/yahoo/document/fieldset/BodyFields.java b/document/src/main/java/com/yahoo/document/fieldset/BodyFields.java
index 58973061340..1fd0d1129fa 100644
--- a/document/src/main/java/com/yahoo/document/fieldset/BodyFields.java
+++ b/document/src/main/java/com/yahoo/document/fieldset/BodyFields.java
@@ -4,14 +4,9 @@ package com.yahoo.document.fieldset;
import com.yahoo.document.Field;
/**
- * Created with IntelliJ IDEA.
- * User: thomasg
- * Date: 4/25/12
- * Time: 3:18 PM
- * To change this template use File | Settings | File Templates.
+ * @deprecated do not use
*/
-//TODO Vespa 8 Remove
-@Deprecated
+@Deprecated // TODO: Remove on Vespa 8
public class BodyFields implements FieldSet {
@Override
public boolean contains(FieldSet o) {
@@ -41,4 +36,5 @@ public class BodyFields implements FieldSet {
public FieldSet clone() throws CloneNotSupportedException {
return new BodyFields();
}
+
}
diff --git a/document/src/main/java/com/yahoo/document/fieldset/HeaderFields.java b/document/src/main/java/com/yahoo/document/fieldset/HeaderFields.java
index cdfd370d1cb..220de1ab416 100644
--- a/document/src/main/java/com/yahoo/document/fieldset/HeaderFields.java
+++ b/document/src/main/java/com/yahoo/document/fieldset/HeaderFields.java
@@ -4,15 +4,11 @@ package com.yahoo.document.fieldset;
import com.yahoo.document.Field;
/**
- * Created with IntelliJ IDEA.
- * User: thomasg
- * Date: 4/25/12
- * Time: 3:18 PM
- * To change this template use File | Settings | File Templates.
+ * @deprecated do not use
*/
-//TODO Vespa 8 Remove
-@Deprecated
+@Deprecated // TODO: Remove on Vespa 8
public class HeaderFields implements FieldSet {
+
@Override
public boolean contains(FieldSet o) {
if (o instanceof HeaderFields || o instanceof DocIdOnly || o instanceof NoFields) {
@@ -41,4 +37,5 @@ public class HeaderFields implements FieldSet {
public FieldSet clone() throws CloneNotSupportedException {
return new HeaderFields();
}
+
}
diff --git a/document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializer42.java b/document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializer42.java
index 460d35ed266..6a07e04a621 100644
--- a/document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializer42.java
+++ b/document/src/main/java/com/yahoo/document/serialization/VespaDocumentSerializer42.java
@@ -64,7 +64,7 @@ import static com.yahoo.text.Utf8.calculateBytePositions;
/**
* Class used for serializing documents on the Vespa 4.2 document format.
*
- * @deprecated Please use {@link com.yahoo.document.serialization.VespaDocumentSerializerHead} instead for new code.
+ * @deprecated use {@link com.yahoo.document.serialization.VespaDocumentSerializerHead} instead for new code
* @author baldersheim
*/
@Deprecated // OK: Don't remove on Vespa 6: Mail may have documents on this format still
diff --git a/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpRequestFactoryTest.java b/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpRequestFactoryTest.java
index 39ad25244df..a15bf4c117a 100644
--- a/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpRequestFactoryTest.java
+++ b/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpRequestFactoryTest.java
@@ -45,7 +45,7 @@ import static org.testng.AssertJUnit.fail;
/**
*
- * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
+ * @author Steinar Knutsen
*/
public class HttpRequestFactoryTest {