Prechádzať zdrojové kódy

Fix unchecked warning in AbstractSecurityWebSocketMessageBrokerConfigurer

Rob Winch 10 rokov pred
rodič
commit
72e256b95a

+ 1 - 1
config/src/main/java/org/springframework/security/config/annotation/web/socket/AbstractSecurityWebSocketMessageBrokerConfigurer.java

@@ -82,7 +82,7 @@ public abstract class AbstractSecurityWebSocketMessageBrokerConfigurer extends A
     public ChannelSecurityInterceptor inboundChannelSecurity() {
         ChannelSecurityInterceptor channelSecurityInterceptor = new ChannelSecurityInterceptor(inboundMessageSecurityMetadataSource());
         List<AccessDecisionVoter<? extends Object>> voters = new ArrayList<AccessDecisionVoter<? extends Object>>();
-        voters.add(new MessageExpressionVoter());
+        voters.add(new MessageExpressionVoter<Object>());
         AffirmativeBased manager = new AffirmativeBased(voters);
         channelSecurityInterceptor.setAccessDecisionManager(manager);
         return channelSecurityInterceptor;