RFR: 8365614: JFR: Improve PrettyWriter::printValue

Erik Gahlin egahlin at openjdk.org
Sun Aug 17 19:17:53 UTC 2025


Could I have a review of a PR  that simplifies the PrettyWriter::printValue method so it uses switch expression. It also changes so null is never passed to the method, making the code more robust.

Testing: jdk/jdk/jfr  + manual comparison of output before and after so it hasn't changed

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

Commit messages:
 - Remove wrongly added file
 - Initial

Changes: https://git.openjdk.org/jdk/pull/26810/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26810&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365614
  Stats: 154 lines in 2 files changed: 23 ins; 66 del; 65 mod
  Patch: https://git.openjdk.org/jdk/pull/26810.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26810/head:pull/26810

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


More information about the hotspot-jfr-dev mailing list