RFR: 8301043: Super-interface for PrintStream and PrintWriter

Tingjun Yuan duke at openjdk.org
Sun Jan 29 06:50:03 UTC 2023


Add `java.io.PrintOutput` to represent print operations, and modify `java.io.PrintStream` and `java.io.PrintWriter` to implement it.

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

Commit messages:
 - remove `@since 1.5`
 - Make PrintWriter implement PrintOutput
 - Make PrintStream implement PrintOutput
 - Create PrintOutput.java

Changes: https://git.openjdk.org/jdk/pull/12277/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12277&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301043
  Stats: 589 lines in 3 files changed: 587 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/12277.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12277/head:pull/12277

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


More information about the core-libs-dev mailing list