mirror of
https://github.com/apache/activemq.git
synced 2025-02-22 18:04:46 +00:00
minor refactor to avoid strange eclipse compile error message
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3bf29aa062
commit
7f1b4644af
@ -83,9 +83,13 @@ class Connect implements StompCommand {
|
||||
format.onFullyConnected();
|
||||
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append(Stomp.Responses.CONNECTED).append(Stomp.NEWLINE);
|
||||
buffer.append(Stomp.Headers.Connected.SESSION).append(Stomp.Headers.SEPERATOR).append(connectionInfo.getClientId()).append(Stomp.NEWLINE).append(
|
||||
Stomp.NEWLINE);
|
||||
buffer.append(Stomp.Responses.CONNECTED);
|
||||
buffer.append(Stomp.NEWLINE);
|
||||
buffer.append(Stomp.Headers.Connected.SESSION);
|
||||
buffer.append(Stomp.Headers.SEPERATOR);
|
||||
buffer.append(connectionInfo.getClientId());
|
||||
buffer.append(Stomp.NEWLINE);
|
||||
buffer.append(Stomp.NEWLINE);
|
||||
buffer.append(Stomp.NULL);
|
||||
out.writeBytes(buffer.toString());
|
||||
return true;
|
||||
|
@ -79,7 +79,10 @@ class FrameBuilder {
|
||||
String key = (String) iterator.next();
|
||||
String property = headers.getProperty(key);
|
||||
if (property != null) {
|
||||
buffer.append(key).append(Stomp.Headers.SEPERATOR).append(property).append(Stomp.NEWLINE);
|
||||
buffer.append(key);
|
||||
buffer.append(Stomp.Headers.SEPERATOR);
|
||||
buffer.append(property);
|
||||
buffer.append(Stomp.NEWLINE);
|
||||
}
|
||||
}
|
||||
buffer.append(Stomp.NEWLINE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user