Polishing
This commit is contained in:
@@ -58,9 +58,8 @@ public class StompDecoder {
|
||||
|
||||
|
||||
/**
|
||||
* Configure a
|
||||
* {@link org.springframework.messaging.support.MessageHeaderInitializer MessageHeaderInitializer}
|
||||
* to apply to the headers of {@link Message}s from decoded STOMP frames.
|
||||
* Configure a {@link MessageHeaderInitializer} to apply to the headers of
|
||||
* {@link Message}s from decoded STOMP frames.
|
||||
*/
|
||||
public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) {
|
||||
this.headerInitializer = headerInitializer;
|
||||
@@ -216,7 +215,7 @@ public class StompDecoder {
|
||||
String header = new String(headerStream.toByteArray(), UTF8_CHARSET);
|
||||
int colonIndex = header.indexOf(':');
|
||||
if (colonIndex <= 0) {
|
||||
if(buffer.remaining() > 0) {
|
||||
if (buffer.remaining() > 0) {
|
||||
throw new StompConversionException("Illegal header: '" + header +
|
||||
"'. A header must be of the form <name>:[<value>].");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user