Skip to content

Commit 56d4f19

Browse files
author
Stephane Landelle
committed
append char instead of String
1 parent a9ac9b2 commit 56d4f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ning/http/client/providers/netty/request/NettyRequestFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ private byte[] computeBodyFromParams(List<Param> params, Charset bodyCharset) {
189189
StringBuilder sb = new StringBuilder();
190190
for (Param param : params) {
191191
UTF8UrlEncoder.appendEncoded(sb, param.getName());
192-
sb.append("=");
192+
sb.append('=');
193193
UTF8UrlEncoder.appendEncoded(sb, param.getValue());
194-
sb.append("&");
194+
sb.append('&');
195195
}
196196
sb.setLength(sb.length() - 1);
197197
return sb.toString().getBytes(bodyCharset);

0 commit comments

Comments
 (0)