src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
157 * {@inheritDoc} |
157 * {@inheritDoc} |
158 */ |
158 */ |
159 @Override |
159 @Override |
160 protected Content getNavSummaryLink(TypeElement typeElement, boolean link) { |
160 protected Content getNavSummaryLink(TypeElement typeElement, boolean link) { |
161 if (link) { |
161 if (link) { |
162 return Links.createLink( |
162 return links.createLink( |
163 SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY, |
163 SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY, |
164 contents.navAnnotationTypeOptionalMember); |
164 contents.navAnnotationTypeOptionalMember); |
165 } else { |
165 } else { |
166 return contents.navAnnotationTypeOptionalMember; |
166 return contents.navAnnotationTypeOptionalMember; |
167 } |
167 } |