mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
Fix unchecked warning in AbstractSecurityWebSocketMessageBrokerConfigurer
This commit is contained in:
parent
71a053000a
commit
72e256b95a
@ -82,7 +82,7 @@ public abstract class AbstractSecurityWebSocketMessageBrokerConfigurer extends A
|
|||||||
public ChannelSecurityInterceptor inboundChannelSecurity() {
|
public ChannelSecurityInterceptor inboundChannelSecurity() {
|
||||||
ChannelSecurityInterceptor channelSecurityInterceptor = new ChannelSecurityInterceptor(inboundMessageSecurityMetadataSource());
|
ChannelSecurityInterceptor channelSecurityInterceptor = new ChannelSecurityInterceptor(inboundMessageSecurityMetadataSource());
|
||||||
List<AccessDecisionVoter<? extends Object>> voters = new ArrayList<AccessDecisionVoter<? extends Object>>();
|
List<AccessDecisionVoter<? extends Object>> voters = new ArrayList<AccessDecisionVoter<? extends Object>>();
|
||||||
voters.add(new MessageExpressionVoter());
|
voters.add(new MessageExpressionVoter<Object>());
|
||||||
AffirmativeBased manager = new AffirmativeBased(voters);
|
AffirmativeBased manager = new AffirmativeBased(voters);
|
||||||
channelSecurityInterceptor.setAccessDecisionManager(manager);
|
channelSecurityInterceptor.setAccessDecisionManager(manager);
|
||||||
return channelSecurityInterceptor;
|
return channelSecurityInterceptor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user