@@ -154,13 +154,14 @@ COPYRIGHT_BOTTOM = \
154154 <a href="$(REDISTRIBUTION_URL)">documentation redistribution policy</a>. \
155155 $(DRAFT_MARKER_STR) <!-- Version $(VERSION_STRING) -->
156156
157- JAVADOC_BOTTOM := \
157+ # $1 - Optional "Other Versions" link
158+ JAVADOC_BOTTOM = \
158159 <a href="$(BUG_SUBMIT_URL)">Report a bug or suggest an enhancement</a><br> \
159160 For further API reference and developer documentation see the \
160161 <a href="$(JAVADOC_BASE_URL)" target="_blank">Java SE \
161162 Documentation</a>, which contains more detailed, \
162163 developer-targeted descriptions with conceptual overviews, definitions \
163- of terms, workarounds, and working code examples.<br> \
164+ of terms, workarounds, and working code examples. $1 <br> \
164165 Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \
165166 the US and other countries.<br> \
166167 $(call COPYRIGHT_BOTTOM, {@docroot}/../)
@@ -300,22 +301,21 @@ define SetupApiDocsGenerationBody
300301 $1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$(addprefix -, \
301302 $$(JAVADOC_DISABLED_DOCLINT_PACKAGES)))
302303
303- ifneq ($$($1_OTHER_VERSIONS), )
304- $1_LINKED_SHORT_NAME = <a href="$$($1_OTHER_VERSIONS)">$$($1_SHORT_NAME)</a>
305- else
306- $1_LINKED_SHORT_NAME = $$($1_SHORT_NAME)
307- endif
308-
309304 $1_DOC_TITLE := $$($1_LONG_NAME)<br>Version $$(VERSION_SPECIFICATION) API \
310305 Specification
311306 $1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME))$$(DRAFT_MARKER_TITLE)
312- $1_HEADER_TITLE := <div $$(HEADER_STYLE)><strong>$$($1_LINKED_SHORT_NAME )</strong> \
307+ $1_HEADER_TITLE := <div $$(HEADER_STYLE)><strong>$$($1_SHORT_NAME )</strong> \
313308 $$(DRAFT_MARKER_STR)</div>
309+ ifneq ($$($1_OTHER_VERSIONS), )
310+ $1_JAVADOC_BOTTOM := $$(call JAVADOC_BOTTOM, <a href="$$($1_OTHER_VERSIONS)">Other versions.</a>)
311+ else
312+ $1_JAVADOC_BOTTOM := $$(call JAVADOC_BOTTOM, )
313+ endif
314314
315315 $1_OPTIONS += -doctitle '$$($1_DOC_TITLE)'
316316 $1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)'
317317 $1_OPTIONS += -header '$$($1_HEADER_TITLE)'
318- $1_OPTIONS += -bottom '$$(JAVADOC_BOTTOM )'
318+ $1_OPTIONS += -bottom '$$($1_JAVADOC_BOTTOM )'
319319 ifeq ($$(IS_DRAFT), true)
320320 $1_OPTIONS += -top '$$(JAVADOC_TOP)'
321321 endif
0 commit comments