Please review a simple change to not extend `Content` in various 
domain-specific javadoc content classes and instead return the `Content` object 
from a public `toContent()` method. All classes affected by this did not 
implement the full `Content` API (for instance, none provided a useful 
implementation of `stripTags()`). Also, all affected classes already used a 
private `toContent()` method to produce the actual content.

This is the first step of an ongoing effort to improve javadoc content classes.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8396181: Clean up Content class hierarchy

Changes: https://git.openjdk.org/jdk/pull/33754/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33754&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8396181
  Stats: 111 lines in 26 files changed: 10 ins; 51 del; 50 mod
  Patch: https://git.openjdk.org/jdk/pull/33754.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33754/head:pull/33754

PR: https://git.openjdk.org/jdk/pull/33754

Reply via email to