Anonymous type can be replaced with lambda
This commit is contained in:
committed by
Josh Cummings
parent
05f42a4995
commit
fb39d9c255
+1
-3
@@ -99,9 +99,7 @@ public final class WebSecurity extends
|
||||
|
||||
private SecurityExpressionHandler<FilterInvocation> expressionHandler = defaultWebSecurityExpressionHandler;
|
||||
|
||||
private Runnable postBuildAction = new Runnable() {
|
||||
public void run() {
|
||||
}
|
||||
private Runnable postBuildAction = () -> {
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
+4
-6
@@ -320,12 +320,10 @@ public abstract class WebSecurityConfigurerAdapter implements
|
||||
|
||||
public void init(final WebSecurity web) throws Exception {
|
||||
final HttpSecurity http = getHttp();
|
||||
web.addSecurityFilterChainBuilder(http).postBuildAction(new Runnable() {
|
||||
public void run() {
|
||||
FilterSecurityInterceptor securityInterceptor = http
|
||||
.getSharedObject(FilterSecurityInterceptor.class);
|
||||
web.securityInterceptor(securityInterceptor);
|
||||
}
|
||||
web.addSecurityFilterChainBuilder(http).postBuildAction(() -> {
|
||||
FilterSecurityInterceptor securityInterceptor = http
|
||||
.getSharedObject(FilterSecurityInterceptor.class);
|
||||
web.securityInterceptor(securityInterceptor);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user