diff --git a/make/Docs.gmk b/make/Docs.gmk index 83ffe2e4df5..612880df2f8 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -154,13 +154,14 @@ COPYRIGHT_BOTTOM = \ documentation redistribution policy. \ $(DRAFT_MARKER_STR) -JAVADOC_BOTTOM := \ +# $1 - Optional "Other Versions" link +JAVADOC_BOTTOM = \ Report a bug or suggest an enhancement
\ For further API reference and developer documentation see the \ Java SE \ Documentation, which contains more detailed, \ developer-targeted descriptions with conceptual overviews, definitions \ - of terms, workarounds, and working code examples.
\ + of terms, workarounds, and working code examples. $1
\ Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \ the US and other countries.
\ $(call COPYRIGHT_BOTTOM, {@docroot}/../) @@ -300,22 +301,21 @@ define SetupApiDocsGenerationBody $1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$(addprefix -, \ $$(JAVADOC_DISABLED_DOCLINT_PACKAGES))) - ifneq ($$($1_OTHER_VERSIONS), ) - $1_LINKED_SHORT_NAME = $$($1_SHORT_NAME) - else - $1_LINKED_SHORT_NAME = $$($1_SHORT_NAME) - endif - $1_DOC_TITLE := $$($1_LONG_NAME)
Version $$(VERSION_SPECIFICATION) API \ Specification $1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME))$$(DRAFT_MARKER_TITLE) - $1_HEADER_TITLE :=
$$($1_LINKED_SHORT_NAME) \ + $1_HEADER_TITLE :=
$$($1_SHORT_NAME) \ $$(DRAFT_MARKER_STR)
+ ifneq ($$($1_OTHER_VERSIONS), ) + $1_JAVADOC_BOTTOM := $$(call JAVADOC_BOTTOM, Other versions.) + else + $1_JAVADOC_BOTTOM := $$(call JAVADOC_BOTTOM, ) + endif $1_OPTIONS += -doctitle '$$($1_DOC_TITLE)' $1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)' $1_OPTIONS += -header '$$($1_HEADER_TITLE)' - $1_OPTIONS += -bottom '$$(JAVADOC_BOTTOM)' + $1_OPTIONS += -bottom '$$($1_JAVADOC_BOTTOM)' ifeq ($$(IS_DRAFT), true) $1_OPTIONS += -top '$$(JAVADOC_TOP)' endif