@ -112,8 +112,8 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -112,8 +112,8 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@ -145,7 +145,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -145,7 +145,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
Assert.notNull(messageConverter,"'messageConverter' must not be null");
Assert.notNull(messageConverter,"MessageConverter must not be null");
this.converter=messageConverter;
}
@ -213,7 +213,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -213,7 +213,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@ -292,8 +292,8 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -292,8 +292,8 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
Assert.hasText(destination,"'destination' is required");
Assert.notNull(handler,"'handler' is required");
Assert.hasText(destination,"Destination header is required");
Assert.notNull(handler,"StompFrameHandler must not be null");
StringsubscriptionId=stompHeaders.getId();
if(!StringUtils.hasText(subscriptionId)){
@ -397,7 +397,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -397,7 +397,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@ -477,7 +477,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -477,7 +477,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
logger.debug("Connection closed in session id="+this.sessionId);
}
if(!this.closing){
resetConnection();
@ -493,7 +493,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -493,7 +493,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
conn.close();
}
catch(Throwableex){
// Ignore
// ignore
}
}
}
@ -519,7 +519,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -519,7 +519,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
}
privatevoidinitReceiptHandling(){
Assert.notNull(getTaskScheduler(),"To track receipts a TaskScheduler must be configured");
Assert.notNull(getTaskScheduler(),"To track receipts, a TaskScheduler must be configured");
@ -546,10 +546,11 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -546,10 +546,11 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
Assert.notNull(this.receiptId,"To track receipts, set autoReceiptEnabled=true or add 'receiptId' header");
Assert.notNull(this.receiptId,
"To track receipts, set autoReceiptEnabled=true or add 'receiptId' header");
synchronized(this){
if(this.result!=null&&this.result==successTask){
invoke(Arrays.asList(task));
invoke(Collections.singletonList(task));
}
else{
if(successTask){
@ -568,7 +569,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -568,7 +569,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
runnable.run();
}
catch(Throwableex){
// Ignore
// ignore
}
}
}
@ -607,12 +608,11 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
@@ -607,12 +608,11 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {