Reformat code
This commit is contained in:
@@ -138,8 +138,8 @@ public abstract class AstUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract a top-level {@code name} closure from inside this block if there is
|
||||
* one, optionally removing it from the block at the same time.
|
||||
* Extract a top-level {@code name} closure from inside this block if there is one,
|
||||
* optionally removing it from the block at the same time.
|
||||
* @param block a block statement (class definition)
|
||||
* @param name the name to look for
|
||||
* @param remove whether or not the extracted closure should be removed
|
||||
|
||||
@@ -105,7 +105,8 @@ public class GroovyCompiler {
|
||||
}
|
||||
|
||||
this.transformations = new ArrayList<ASTTransformation>();
|
||||
this.transformations.add(new DependencyManagementBomTransformation(resolutionContext));
|
||||
this.transformations.add(new DependencyManagementBomTransformation(
|
||||
resolutionContext));
|
||||
this.transformations.add(new DependencyAutoConfigurationTransformation(
|
||||
this.loader, resolutionContext, this.compilerAutoConfigurations));
|
||||
this.transformations.add(new GroovyBeansTransformation());
|
||||
|
||||
@@ -31,7 +31,8 @@ public class SpringSecurityCompilerAutoConfiguration extends CompilerAutoConfigu
|
||||
|
||||
@Override
|
||||
public boolean matches(ClassNode classNode) {
|
||||
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableWebSecurity", "EnableGlobalMethodSecurity");
|
||||
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableWebSecurity",
|
||||
"EnableGlobalMethodSecurity");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -44,7 +45,8 @@ public class SpringSecurityCompilerAutoConfiguration extends CompilerAutoConfigu
|
||||
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) {
|
||||
imports.addImports("org.springframework.security.core.Authentication",
|
||||
imports.addImports(
|
||||
"org.springframework.security.core.Authentication",
|
||||
"org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity",
|
||||
"org.springframework.security.core.authority.AuthorityUtils")
|
||||
.addStarImports(
|
||||
|
||||
Reference in New Issue
Block a user