StringBuffer -> StringBuilder
This commit is contained in:
parent
70151828dc
commit
8ac3b2905d
@ -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) {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user