@@ -154,13 +154,14 @@ COPYRIGHT_BOTTOM = \
154
154
<a href="$(REDISTRIBUTION_URL)">documentation redistribution policy</a>. \
155
155
$(DRAFT_MARKER_STR) <!-- Version $(VERSION_STRING) -->
156
156
157
- JAVADOC_BOTTOM := \
157
+ # $1 - Optional "Other Versions" link
158
+ JAVADOC_BOTTOM = \
158
159
<a href="$(BUG_SUBMIT_URL)">Report a bug or suggest an enhancement</a><br> \
159
160
For further API reference and developer documentation see the \
160
161
<a href="$(JAVADOC_BASE_URL)" target="_blank">Java SE \
161
162
Documentation</a>, which contains more detailed, \
162
163
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> \
164
165
Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \
165
166
the US and other countries.<br> \
166
167
$(call COPYRIGHT_BOTTOM, {@docroot}/../)
@@ -300,22 +301,21 @@ define SetupApiDocsGenerationBody
300
301
$1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$(addprefix -, \
301
302
$$(JAVADOC_DISABLED_DOCLINT_PACKAGES)))
302
303
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
-
309
304
$1_DOC_TITLE := $$($1_LONG_NAME)<br>Version $$(VERSION_SPECIFICATION) API \
310
305
Specification
311
306
$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> \
313
308
$$(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
314
314
315
315
$1_OPTIONS += -doctitle '$$($1_DOC_TITLE)'
316
316
$1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)'
317
317
$1_OPTIONS += -header '$$($1_HEADER_TITLE)'
318
- $1_OPTIONS += -bottom '$$(JAVADOC_BOTTOM )'
318
+ $1_OPTIONS += -bottom '$$($1_JAVADOC_BOTTOM )'
319
319
ifeq ($$(IS_DRAFT), true)
320
320
$1_OPTIONS += -top '$$(JAVADOC_TOP)'
321
321
endif
0 commit comments