-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8353795: Add Writer.of(StringBuilder) #24469
base: master
Are you sure you want to change the base?
Conversation
… reflect current content of internally used Writer
👋 Welcome back mkarg! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
Continuing from thread "Request for Enhancement: java.io.Writer.of(Appendable) as an efficient alternative to java.io.StringWriter": @liach wrote:
Actually I do not see the benefit of documenting which method redirects to what other method or class, but I see that it binds us in future to today's decisions. Also I do not see what benefit notes about Having said that, instead I started the PR with a typical JavaDoc as it looks like what we did in WDYT? |
This Pull Requests proposes an implementation for JDK-8353795: Adding the new method
public static Writer Writer.of(StringBuilder)
, providing a non-synchronized Writer implementation optimized for writing intoStringBuilder
.A basic test is provided to proof that the new
Writer
behaves as expected. For comparison, the same test is also run againstStringWriter
.Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24469/head:pull/24469
$ git checkout pull/24469
Update a local copy of the PR:
$ git checkout pull/24469
$ git pull https://git.openjdk.org/jdk.git pull/24469/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24469
View PR using the GUI difftool:
$ git pr show -t 24469
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24469.diff
Using Webrev
Link to Webrev Comment