Use StringBuilder instead of StringBuffer on STOMP encode
This commit is contained in:
parent
615a9881b5
commit
214a1dc1eb
|
@ -117,7 +117,7 @@ public class StompFrame
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuffer head = new StringBuffer();
|
StringBuilder head = new StringBuilder();
|
||||||
head.append(command);
|
head.append(command);
|
||||||
head.append(Stomp.NEWLINE);
|
head.append(Stomp.NEWLINE);
|
||||||
// Output the headers.
|
// Output the headers.
|
||||||
|
@ -148,7 +148,7 @@ public class StompFrame
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void encodeHeaders(StringBuffer head)
|
protected void encodeHeaders(StringBuilder head)
|
||||||
{
|
{
|
||||||
for (Map.Entry<String, String> header : headers.entrySet())
|
for (Map.Entry<String, String> header : headers.entrySet())
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class StompFrameV11 extends StompFrame
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void encodeHeaders(StringBuffer head)
|
protected void encodeHeaders(StringBuilder head)
|
||||||
{
|
{
|
||||||
for (Header h : allHeaders)
|
for (Header h : allHeaders)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue