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:
James Strachan 2006-03-01 17:04:16 +00:00
parent 3bf29aa062
commit 7f1b4644af
2 changed files with 11 additions and 4 deletions

View File

@ -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;

View File

@ -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);