Skip to content

Update Cookie.java - #94

Closed
hokiemike84 wants to merge 1 commit into
stleary:masterfrom
hokiemike84:patch-1
Closed

Update Cookie.java#94
hokiemike84 wants to merge 1 commit into
stleary:masterfrom
hokiemike84:patch-1

Conversation

@hokiemike84

Copy link
Copy Markdown

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

stleary commented Mar 16, 2015

Copy link
Copy Markdown
Owner

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