On Wed, 8 Jan 2025 19:41:42 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:
> Please review a doc-only change to add missing `@serial` javadoc tags in > module `java.base`. This is a sub-task of [JDK-8286931] to allow us to > re-enable the javadoc `-serialwarn` option in the JDK doc build, which has > been disabled since JDK 19. > > [JDK-8286931]: https://bugs.openjdk.org/browse/JDK-8286931 > > For private and package-private serialized fields that already have a doc > comment, the main description is converted to a block tag by prepending > `@serial` since these fields do not require a main description. (For > protected and public serialized fields we would have appended an empty > `@serial` block tag instead with the same effect, but there are no > protected/public fields in this particular sub-task.) For those fields that > do not have a doc comment, a doc comment with an empty `@serial` tag is > added. > > There is one special case in `java/util/UUID.java` where two private fields > had plain traditional comments containing `@serial` tags instead of doc > comments. Converting these comments to doc-comments is the only change in > this PR that causes a change in the generated documentation, adding > documentation for these two fields to the `serialized-form.html` page. This pull request has now been integrated. Changeset: ceae2b97 Author: Hannes Wallnöfer <hann...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/ceae2b977dac58a9b2c09e42cb256c94eff9222b Stats: 305 lines in 89 files changed: 83 ins; 4 del; 218 mod 8347121: Add missing @serial tags to module java.base Reviewed-by: alanb ------------- PR: https://git.openjdk.org/jdk/pull/22978