Skip to content
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

Update Cookie.java #94

Closed
wants to merge 1 commit into from
Closed

Update Cookie.java #94

wants to merge 1 commit into from

Conversation

hokiemike84
Copy link

Initialized capacity of a StringBuffer to avoid the need for re-sizing. The returned string should be of equal or lesser capacity than the original string.

Initialized capacity of a StringBuffer to avoid the need for re-sizing.
@stleary
Copy link
Owner

stleary commented Mar 16, 2015

Hi Mike,
Your recommended change was incorporated during the Java 1.8 update. In the case of Cookie.java, we now have:
StringBuilder sb = new StringBuilder(length);
Thanks for the suggestion,
Sean

@stleary stleary closed this Mar 16, 2015
BGehrels pushed a commit to BGehrels/JSON-java that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants