Skip to content

Commit f875b74

Browse files
committed
Reformat samples with spring-javaformat 0.0.8
See gh-16418
1 parent 07c000c commit f875b74

File tree

33 files changed

+114
-87
lines changed

33 files changed

+114
-87
lines changed

spring-boot-samples/spring-boot-sample-actuator-custom-security/src/test/java/sample/actuator/customsecurity/ManagementPortAndPathSampleActuatorApplicationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -37,9 +37,9 @@
3737
* @author Madhura Bhave
3838
*/
3939
@RunWith(SpringRunner.class)
40-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
41-
"management.server.port=0",
42-
"management.server.servlet.context-path=/management" })
40+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
41+
properties = { "management.server.port=0",
42+
"management.server.servlet.context-path=/management" })
4343
public class ManagementPortAndPathSampleActuatorApplicationTests {
4444

4545
@LocalServerPort

spring-boot-samples/spring-boot-sample-actuator-ui/src/test/java/sample/actuator/ui/SampleActuatorUiApplicationPortTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -38,8 +38,8 @@
3838
* @author Dave Syer
3939
*/
4040
@RunWith(SpringRunner.class)
41-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
42-
"management.server.port:0" })
41+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
42+
properties = { "management.server.port:0" })
4343
public class SampleActuatorUiApplicationPortTests {
4444

4545
@LocalServerPort

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementAddressActuatorApplicationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -38,9 +38,9 @@
3838
* @author Dave Syer
3939
*/
4040
@RunWith(SpringRunner.class)
41-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
42-
"management.server.port=0", "management.server.address=127.0.0.1",
43-
"management.server.servlet.context-path:/admin" })
41+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
42+
properties = { "management.server.port=0", "management.server.address=127.0.0.1",
43+
"management.server.servlet.context-path:/admin" })
4444
public class ManagementAddressActuatorApplicationTests {
4545

4646
@LocalServerPort

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementPathSampleActuatorApplicationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -37,8 +37,8 @@
3737
* @author Dave Syer
3838
*/
3939
@RunWith(SpringRunner.class)
40-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
41-
"management.endpoints.web.base-path=/admin" })
40+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
41+
properties = { "management.endpoints.web.base-path=/admin" })
4242
public class ManagementPathSampleActuatorApplicationTests {
4343

4444
@Autowired

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementPortAndPathSampleActuatorApplicationTests.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -40,9 +40,10 @@
4040
* @author Dave Syer
4141
*/
4242
@RunWith(SpringRunner.class)
43-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
44-
"management.server.port=0", "management.endpoints.web.base-path=/admin",
45-
"management.endpoint.health.show-details=never" })
43+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
44+
properties = { "management.server.port=0",
45+
"management.endpoints.web.base-path=/admin",
46+
"management.endpoint.health.show-details=never" })
4647
public class ManagementPortAndPathSampleActuatorApplicationTests {
4748

4849
@LocalServerPort

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/NoManagementSampleActuatorApplicationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -37,8 +37,8 @@
3737
* @author Dave Syer
3838
*/
3939
@RunWith(SpringRunner.class)
40-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
41-
"management.server.port=-1" })
40+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
41+
properties = { "management.server.port=-1" })
4242
public class NoManagementSampleActuatorApplicationTests {
4343

4444
@Autowired

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ServletPathSampleActuatorApplicationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -37,8 +37,8 @@
3737
* @author Dave Syer
3838
*/
3939
@RunWith(SpringRunner.class)
40-
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
41-
"server.servlet.path=/spring" })
40+
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
41+
properties = { "server.servlet.path=/spring" })
4242
public class ServletPathSampleActuatorApplicationTests {
4343

4444
@Autowired

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ShutdownSampleActuatorApplicationTests.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -41,9 +41,10 @@
4141
* @author Dave Syer
4242
*/
4343
@RunWith(SpringRunner.class)
44-
@SpringBootTest(classes = {
45-
ShutdownSampleActuatorApplicationTests.SecurityConfiguration.class,
46-
SampleActuatorApplication.class }, webEnvironment = WebEnvironment.RANDOM_PORT)
44+
@SpringBootTest(
45+
classes = { ShutdownSampleActuatorApplicationTests.SecurityConfiguration.class,
46+
SampleActuatorApplication.class },
47+
webEnvironment = WebEnvironment.RANDOM_PORT)
4748
public class ShutdownSampleActuatorApplicationTests {
4849

4950
@Autowired

spring-boot-samples/spring-boot-sample-atmosphere/src/main/java/sample/atmosphere/ChatService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -45,7 +45,8 @@ public void onDisconnect(AtmosphereResourceEvent event) {
4545
event.isCancelled() ? "cancelled" : "closed");
4646
}
4747

48-
@org.atmosphere.config.service.Message(encoders = JacksonEncoderDecoder.class, decoders = JacksonEncoderDecoder.class)
48+
@org.atmosphere.config.service.Message(encoders = JacksonEncoderDecoder.class,
49+
decoders = JacksonEncoderDecoder.class)
4950
public Message onMessage(Message message) throws IOException {
5051
this.logger.info("Author {} sent message {}", message.getAuthor(),
5152
message.getMessage());

spring-boot-samples/spring-boot-sample-atmosphere/src/test/java/sample/atmosphere/SampleAtmosphereApplicationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -45,7 +45,8 @@
4545
import static org.assertj.core.api.Assertions.assertThat;
4646

4747
@RunWith(SpringRunner.class)
48-
@SpringBootTest(classes = SampleAtmosphereApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT)
48+
@SpringBootTest(classes = SampleAtmosphereApplication.class,
49+
webEnvironment = WebEnvironment.RANDOM_PORT)
4950
public class SampleAtmosphereApplicationTests {
5051

5152
private static Log logger = LogFactory.getLog(SampleAtmosphereApplicationTests.class);

0 commit comments

Comments
 (0)