mirror of
https://github.com/apache/activemq.git
synced 2025-02-23 10:35:04 +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();
|
format.onFullyConnected();
|
||||||
|
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
buffer.append(Stomp.Responses.CONNECTED).append(Stomp.NEWLINE);
|
buffer.append(Stomp.Responses.CONNECTED);
|
||||||
buffer.append(Stomp.Headers.Connected.SESSION).append(Stomp.Headers.SEPERATOR).append(connectionInfo.getClientId()).append(Stomp.NEWLINE).append(
|
buffer.append(Stomp.NEWLINE);
|
||||||
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);
|
buffer.append(Stomp.NULL);
|
||||||
out.writeBytes(buffer.toString());
|
out.writeBytes(buffer.toString());
|
||||||
return true;
|
return true;
|
||||||
|
@ -79,7 +79,10 @@ class FrameBuilder {
|
|||||||
String key = (String) iterator.next();
|
String key = (String) iterator.next();
|
||||||
String property = headers.getProperty(key);
|
String property = headers.getProperty(key);
|
||||||
if (property != null) {
|
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);
|
buffer.append(Stomp.NEWLINE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user