Fix Build Against Spring 5.0.0.BUILD-SNAPSHOT

Change Bean definition to static to avoid SPR-12646

Fixes gh-4150
This commit is contained in:
Rob Winch 2016-12-08 15:45:05 -06:00
parent bb834bccf6
commit fc516b55a6
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ public class AbstractSecurityWebSocketMessageBrokerConfigurerTests {
// @formatter:on
@Bean
public SecurityExpressionHandler<Message<Object>> messageSecurityExpressionHandler() {
public static SecurityExpressionHandler<Message<Object>> messageSecurityExpressionHandler() {
return new DefaultMessageSecurityExpressionHandler<Object>() {
@Override
protected SecurityExpressionOperations createSecurityExpressionRoot(