Please review a doc-only change to make the example doclet in `jdk.javadoc.doclet` package documentation compile and work out of the box by not hiding/replacing the imports.
Additional changes are to reorder methods to match the more intuitive order in the `Doclet` interface, change access for the `printElement` method to private, and move the `overviewFile` field declaration to the top and the `printElement` method to the end of the class. This is a `noreg-doc` change, to test the changes I copied the snippet contents via copy-to-clipboard button and compiled and ran the code using the command line provided in the documentation. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8367342: Doclet documentation is incomplete Changes: https://git.openjdk.org/jdk/pull/30788/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30788&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8367342 Stats: 82 lines in 1 file changed: 39 ins; 43 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/30788.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30788/head:pull/30788 PR: https://git.openjdk.org/jdk/pull/30788
