The top level type generation order is not deterministic due to the directory listing being non-deterministic. Snippet ids are monotonically incremented during the javadoc run. This means that the generated snippet ids are not reproducible. This PR changes Set to the Map so that each page uses a separate snippet id counter. Alternatives: - reset ids set when tagletWriter.htmlWriter changes - list files in sorted order for javadoc generation
============================== Test summary ============================== TEST TOTAL PASS FAIL ERROR SKIP jtreg:test/langtools/jdk/javadoc 398 397 0 0 1 ============================== TEST SUCCESS Finished building target 'test' in configuration 'linux-x86_64-server-fastdebug' --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - fix: use unnamed parameter - fix: reset snippet id on new page - test: snippet id should be reset between pages. Changes: https://git.openjdk.org/jdk/pull/31345/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31345&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8385738 Stats: 98 lines in 2 files changed: 93 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/31345.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31345/head:pull/31345 PR: https://git.openjdk.org/jdk/pull/31345
