diff --git a/make/Docs.gmk b/make/Docs.gmk index 295cf7d9119..83ffe2e4df5 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -99,7 +99,8 @@ JAVADOC_TAGS := \ REFERENCE_TAGS := $(JAVADOC_TAGS) # Which doclint checks to ignore -JAVADOC_DISABLED_DOCLINT := missing +JAVADOC_DISABLED_DOCLINT_WARNINGS := missing +JAVADOC_DISABLED_DOCLINT_PACKAGES := org.w3c.* javax.smartcardio # The initial set of options for javadoc JAVADOC_OPTIONS := -use -keywords -notimestamp \ @@ -294,9 +295,10 @@ define SetupApiDocsGenerationBody # Create a string like "-Xdoclint:all,-syntax,-html,..." $1_OPTIONS += -Xdoclint:all,$$(call CommaList, $$(addprefix -, \ - $$(JAVADOC_DISABLED_DOCLINT))) - # Ignore the doclint warnings in the W3C DOM package - $1_OPTIONS += -Xdoclint/package:-org.w3c.* + $$(JAVADOC_DISABLED_DOCLINT_WARNINGS))) + # Ignore the doclint warnings in certain packages + $1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$(addprefix -, \ + $$(JAVADOC_DISABLED_DOCLINT_PACKAGES))) ifneq ($$($1_OTHER_VERSIONS), ) $1_LINKED_SHORT_NAME = $$($1_SHORT_NAME)