src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeWriterImpl.java
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeWriterImpl.java Tue Feb 06 16:33:38 2018 -0800
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeWriterImpl.java Tue Feb 06 18:28:23 2018 -0800
@@ -37,7 +37,6 @@
import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle;
import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTag;
import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree;
-import jdk.javadoc.internal.doclets.formats.html.markup.Links;
import jdk.javadoc.internal.doclets.formats.html.markup.StringContent;
import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeWriter;
import jdk.javadoc.internal.doclets.toolkit.Content;
@@ -70,23 +69,15 @@
protected TypeElement annotationType;
- protected TypeMirror prev;
-
- protected TypeMirror next;
-
/**
* @param configuration the configuration
* @param annotationType the annotation type being documented.
- * @param prevType the previous class that was documented.
- * @param nextType the next class being documented.
*/
public AnnotationTypeWriterImpl(HtmlConfiguration configuration,
- TypeElement annotationType, TypeMirror prevType, TypeMirror nextType) {
+ TypeElement annotationType) {
super(configuration, DocPath.forClass(configuration.utils, annotationType));
this.annotationType = annotationType;
configuration.currentTypeElement = annotationType;
- this.prev = prevType;
- this.next = nextType;
}
/**
@@ -139,44 +130,6 @@
}
/**
- * Get link to previous class.
- *
- * @return a content tree for the previous class link
- */
- @Override
- public Content getNavLinkPrevious() {
- Content li;
- if (prev != null) {
- Content prevLink = getLink(new LinkInfoImpl(configuration,
- LinkInfoImpl.Kind.CLASS, utils.asTypeElement(prev))
- .label(contents.prevClassLabel).strong(true));
- li = HtmlTree.LI(prevLink);
- }
- else
- li = HtmlTree.LI(contents.prevClassLabel);
- return li;
- }
-
- /**
- * Get link to next class.
- *
- * @return a content tree for the next class link
- */
- @Override
- public Content getNavLinkNext() {
- Content li;
- if (next != null) {
- Content nextLink = getLink(new LinkInfoImpl(configuration,
- LinkInfoImpl.Kind.CLASS, utils.asTypeElement(next))
- .label(contents.nextClassLabel).strong(true));
- li = HtmlTree.LI(nextLink);
- }
- else
- li = HtmlTree.LI(contents.nextClassLabel);
- return li;
- }
-
- /**
* {@inheritDoc}
*/
@Override