diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java index 571841d7a1..e693dd1d87 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AllNestedConditions.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AllNestedConditions.java index b5bb8fe7c6..853937732e 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AllNestedConditions.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AllNestedConditions.java @@ -43,9 +43,11 @@ import org.springframework.context.annotation.Condition; * } * *
- * The {@link ConfigurationPhase} should be specified according to the conditions that - * are defined. In the example above, all conditions are static and can be evaluated - * early so {@code PARSE_CONFIGURATION} is a right fit. + * The + * {@link org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase + * ConfigurationPhase} should be specified according to the conditions that are defined. + * In the example above, all conditions are static and can be evaluated early so + * {@code PARSE_CONFIGURATION} is a right fit. * * @author Phillip Webb * @since 1.3.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AnyNestedCondition.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AnyNestedCondition.java index 462bed55b1..6c898be2bc 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AnyNestedCondition.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AnyNestedCondition.java @@ -45,9 +45,11 @@ import org.springframework.core.annotation.Order; * } * *
- * The {@link ConfigurationPhase} should be specified according to the conditions that - * are defined. In the example above, all conditions are static and can be evaluated - * early so {@code PARSE_CONFIGURATION} is a right fit. + * The + * {@link org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase + * ConfigurationPhase} should be specified according to the conditions that are defined. + * In the example above, all conditions are static and can be evaluated early so + * {@code PARSE_CONFIGURATION} is a right fit. * * @author Phillip Webb * @since 1.2.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/NoneNestedConditions.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/NoneNestedConditions.java index 2a164b74d1..3d2c1ba322 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/NoneNestedConditions.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/NoneNestedConditions.java @@ -43,9 +43,11 @@ import org.springframework.context.annotation.Condition; * } * *
- * The {@link ConfigurationPhase} should be specified according to the conditions that - * are defined. In the example above, all conditions are static and can be evaluated - * early so {@code PARSE_CONFIGURATION} is a right fit. + * The + * {@link org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase + * ConfigurationPhase} should be specified according to the conditions that are defined. + * In the example above, all conditions are static and can be evaluated early so + * {@code PARSE_CONFIGURATION} is a right fit. * * @author Phillip Webb * @since 1.3.0 diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java index 10b2733070..0cc434c562 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java @@ -264,8 +264,8 @@ public class ResourceServerTokenServicesConfigurationTests { EnvironmentTestUtils.addEnvironment(this.environment, "security.oauth2.resource.jwk.key-set-uri=http://my-auth-server/token_keys"); this.context = new SpringApplicationBuilder(JwkTokenStoreConfiguration.class, - ResourceConfiguration.class) - .environment(this.environment).web(false).run(); + ResourceConfiguration.class).environment(this.environment).web(false) + .run(); assertThat(this.context.getBeansOfType(JwkTokenStore.class)).hasSize(1); } @@ -273,8 +273,9 @@ public class ResourceServerTokenServicesConfigurationTests { public void jwtTokenStoreShouldBeConditionalOnMissingBean() throws Exception { EnvironmentTestUtils.addEnvironment(this.environment, "security.oauth2.resource.jwt.keyValue=" + PUBLIC_KEY); - this.context = new SpringApplicationBuilder(JwtTokenStoreConfiguration.class, ResourceConfiguration.class) - .environment(this.environment).web(false).run(); + this.context = new SpringApplicationBuilder(JwtTokenStoreConfiguration.class, + ResourceConfiguration.class).environment(this.environment).web(false) + .run(); assertThat(this.context.getBeansOfType(JwtTokenStore.class)).hasSize(1); } diff --git a/spring-boot-docs/src/main/java/org/springframework/boot/ExitCodeApplication.java b/spring-boot-docs/src/main/java/org/springframework/boot/ExitCodeApplication.java index 6a6d80ad7e..3af123333c 100644 --- a/spring-boot-docs/src/main/java/org/springframework/boot/ExitCodeApplication.java +++ b/spring-boot-docs/src/main/java/org/springframework/boot/ExitCodeApplication.java @@ -28,11 +28,6 @@ import org.springframework.context.annotation.Bean; @SpringBootApplication public class ExitCodeApplication { - public static void main(String[] args) { - System.exit(SpringApplication.exit( - SpringApplication.run(ExitCodeApplication.class, args))); - } - @Bean public ExitCodeGenerator exitCodeGenerator() { return new ExitCodeGenerator() { @@ -43,5 +38,10 @@ public class ExitCodeApplication { }; } + public static void main(String[] args) { + System.exit(SpringApplication + .exit(SpringApplication.run(ExitCodeApplication.class, args))); + } + } // end::example[] diff --git a/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/CorsSampleActuatorApplicationTests.java b/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/CorsSampleActuatorApplicationTests.java index dffe86f177..ba96211b9f 100644 --- a/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/CorsSampleActuatorApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/CorsSampleActuatorApplicationTests.java @@ -51,37 +51,37 @@ public class CorsSampleActuatorApplicationTests { @Test public void sensitiveEndpointShouldReturnUnauthorized() throws Exception { - ResponseEntity