StringBuffer -> StringBuilder

This commit is contained in:
Trustin Lee 2008-11-20 08:15:20 +00:00
parent 70151828dc
commit 8ac3b2905d
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
}
protected String readIntoCurrentLine(ChannelBuffer channel) {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
while (true) {
byte nextByte = channel.readByte();
if (nextByte == HttpCodecUtil.CR) {

View File

@ -55,7 +55,7 @@ public class QueryStringEncoder {
return new URI(url);
}
else {
StringBuffer sb = new StringBuffer(url).append("?");
StringBuilder sb = new StringBuilder(url).append("?");
for (int i = 0; i < params.size(); i++) {
Param param = params.get(i);
sb.append(replaceSpaces(param.name)).append("=").append(replaceSpaces(param.value));