Simplify if-statements with instanceof checks
Closes gh-25449
This commit is contained in:
@@ -96,7 +96,7 @@ public class WebSocketMessageBrokerStats {
|
||||
}
|
||||
}
|
||||
SubProtocolHandler defaultHandler = this.webSocketHandler.getDefaultProtocolHandler();
|
||||
if (defaultHandler != null && defaultHandler instanceof StompSubProtocolHandler) {
|
||||
if (defaultHandler instanceof StompSubProtocolHandler) {
|
||||
return (StompSubProtocolHandler) defaultHandler;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user