diff --git a/src/jdk.javadoc/share/man/javadoc.1 b/src/jdk.javadoc/share/man/javadoc.1 index d42d7137657..8c149ff58f0 100644 --- a/src/jdk.javadoc/share/man/javadoc.1 +++ b/src/jdk.javadoc/share/man/javadoc.1 @@ -108,8 +108,8 @@ declaration, they will be ignored. To check for any extra or misplaced documentation comments, compile your source code with the \f[V]javac\f[R] option \f[V]-Xlint\f[R], or more specifically, \f[V]-Xlint:dangling-doc-comments\f[R]. -Within a source file, you may use suppress any warnings generated by -these options by using +Within a source file, you may suppress any warnings generated by these +options by using \f[V]\[at]SuppressWarnings(\[dq]dangling-doc-comments\[dq])\f[R] on a suitable enclosing declaration. .SS Conformance @@ -920,6 +920,11 @@ throughout the rest of the document. This is useful when your source code contains no deprecated APIs, and you want to make the navigation bar cleaner. .TP +\f[V]--no-fonts\f[R] +Prevents inclusion of font files in the generated documentation. +This can be useful if the documentation uses a custom stylesheet which +does not use the default fonts. +.TP \f[V]-nohelp\f[R] Omits the \f[B]HELP\f[R] link in the navigation bar at the top of each generated page. diff --git a/test/langtools/jdk/javadoc/tool/CheckManPageOptions.java b/test/langtools/jdk/javadoc/tool/CheckManPageOptions.java index 9e985e7d5d1..2e2d0d0f84d 100644 --- a/test/langtools/jdk/javadoc/tool/CheckManPageOptions.java +++ b/test/langtools/jdk/javadoc/tool/CheckManPageOptions.java @@ -66,7 +66,7 @@ public class CheckManPageOptions { static final PrintStream out = System.err; - List MISSING_IN_MAN_PAGE = List.of("--no-fonts"); + List MISSING_IN_MAN_PAGE = List.of(); void run(String... args) throws Exception { var file = args.length == 0 ? findDefaultFile() : Path.of(args[0]);