Skip to content

Commit 8a8b5d3

Browse files
committed
Polish
1 parent df81b31 commit 8a8b5d3

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepositoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/BootGlobalAuthenticationConfiguration.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@
2929
import org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter;
3030

3131
/**
32-
* This works with the {@link AuthenticationConfiguration} to ensure that users are able
33-
* to use:
32+
* {@link GlobalAuthenticationConfigurerAdapter} to trigger early initialization of
33+
* {@code @EnableAutoConfiguration} beans. This configuration is imported from
34+
* {@link AuthenticationConfiguration} to ensure that users are able to configure the
35+
* {@link AuthenticationManagerBuilder} from their {@code @EnableAutoConfiguration} or
36+
* {@code @SpringBootApplication} configuration class:
3437
*
35-
* <pre>
38+
* <pre class="code">
39+
* &#064;Autowired
3640
* public void configureGlobal(AuthenticationManagerBuilder auth) {
3741
* ...
3842
* }
3943
* </pre>
4044
*
41-
* within their classes annotated with {@link EnableAutoConfiguration}.
42-
*
4345
* @author Rob Winch
4446
* @since 1.1.11
4547
*/
@@ -73,5 +75,7 @@ public void init(AuthenticationManagerBuilder auth) {
7375
logger.debug("Eagerly initializing " + beansWithAnnotation);
7476
}
7577
}
78+
7679
}
80+
7781
}

spring-boot-security-tests/spring-boot-security-tests-web-helloworld/src/main/java/sample/HelloWebSecurityApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception
3636
public static void main(String[] args) {
3737
SpringApplication.run(HelloWebSecurityApplication.class, args);
3838
}
39-
}
39+
40+
}

spring-boot-security-tests/spring-boot-security-tests-web-helloworld/src/test/java/sample/HelloWebSecurityApplicationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ public void userAuthenticates() throws Exception {
7474

7575
assertThat(this.response.getStatus(), equalTo(HttpServletResponse.SC_OK));
7676
}
77+
7778
}

spring-boot/src/main/java/org/springframework/boot/context/embedded/ConfigurableEmbeddedServletContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2014 the original author or authors.
2+
* Copyright 2012-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)