summaryrefslogtreecommitdiffstats
path: root/vespa-documentgen-plugin
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-06-02 12:52:12 +0000
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:25 +0200
commitf2d548b013350a99c02604020eb1bfc4c2a7bf1f (patch)
tree4e9d4f25114403a5510b75cb9f4ede3996fd9548 /vespa-documentgen-plugin
parentcf964397ea89d06916658df9b3c1c548a8960380 (diff)
remove more deprecated APIs
Diffstat (limited to 'vespa-documentgen-plugin')
-rw-r--r--vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java b/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java
index 1fcb639589f..ed497e8ec1b 100644
--- a/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java
+++ b/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java
@@ -444,10 +444,7 @@ public class DocumentGenMojo extends AbstractMojo {
" */\n" +
"@com.yahoo.document.Generated\npublic class "+className+" extends "+superType+" {\n\n"+
ind(1)+"/** The doc type of this.*/\n" +
- ind(1)+"public static final com.yahoo.document.DocumentType type = getDocumentType();\n\n"+
- ind(1)+"/** Struct type view of the type of the body of this.*/\n" +
- ind(1)+"/** Struct type view of the type of the header of this.*/\n" +
- ind(1)+"private static final com.yahoo.document.StructDataType headerStructType = getHeaderStructType();\n\n");
+ ind(1)+"public static final com.yahoo.document.DocumentType type = getDocumentType();\n\n");
// Constructor
out.write(
@@ -461,11 +458,6 @@ public class DocumentGenMojo extends AbstractMojo {
// isGenerated()
out.write(ind(1)+"@Override protected boolean isGenerated() { return true; }\n\n");
- // Mimic header and body to make serialization work.
- // This can be improved by generating a method to serialize the document _here_, and use that in serialization.
- exportOverriddenStructGetter(docType.allHeader().getFields(), out, 1, "getHeader", className+".headerStructType");
- exportStructTypeGetter(docType.getName()+".header", docType.allHeader().getFields(), out, 1, "getHeaderStructType", "com.yahoo.document.StructDataType");
-
Collection<Field> allUniqueFields = getAllUniqueFields(multiExtends, docType.getAllFields());
exportExtendedStructTypeGetter(className, docType.getName(), allUniqueFields, docType.getFieldSets(),
docType.getImportedFieldNames(), out, 1, "getDocumentType", "com.yahoo.document.DocumentType");