Skip to content

Commit f875b74

Browse files
committed
Reformat samples with spring-javaformat 0.0.8
See spring-projectsgh-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

+4-4
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

+3-3
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

+4-4
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

+3-3
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

+5-4
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

+3-3
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

+3-3
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

+5-4
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

+3-2
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

+3-2
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);

spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 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.
@@ -39,8 +39,8 @@
3939
* Tests for {@link SampleCassandraApplication}.
4040
*/
4141
@RunWith(SpringRunner.class)
42-
@TestExecutionListeners(mergeMode = MergeMode.MERGE_WITH_DEFAULTS, listeners = {
43-
OrderedCassandraTestExecutionListener.class })
42+
@TestExecutionListeners(mergeMode = MergeMode.MERGE_WITH_DEFAULTS,
43+
listeners = { OrderedCassandraTestExecutionListener.class })
4444
@SpringBootTest
4545
@CassandraDataSet(keyspace = "mykeyspace", value = "setup.cql")
4646
@EmbeddedCassandra(timeout = 60000)

spring-boot-samples/spring-boot-sample-data-elasticsearch/src/main/java/sample/data/elasticsearch/Customer.java

+3-2
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-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.
@@ -19,7 +19,8 @@
1919
import org.springframework.data.annotation.Id;
2020
import org.springframework.data.elasticsearch.annotations.Document;
2121

22-
@Document(indexName = "customer", type = "customer", shards = 1, replicas = 0, refreshInterval = "-1")
22+
@Document(indexName = "customer", type = "customer", shards = 1, replicas = 0,
23+
refreshInterval = "-1")
2324
public class Customer {
2425

2526
@Id

spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/domain/City.java

+3-2
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.
@@ -30,7 +30,8 @@ public class City implements Serializable {
3030
private static final long serialVersionUID = 1L;
3131

3232
@Id
33-
@SequenceGenerator(name = "city_generator", sequenceName = "city_sequence", initialValue = 23)
33+
@SequenceGenerator(name = "city_generator", sequenceName = "city_sequence",
34+
initialValue = 23)
3435
@GeneratedValue(generator = "city_generator")
3536
private Long id;
3637

spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/domain/Hotel.java

+3-2
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.
@@ -36,7 +36,8 @@ public class Hotel implements Serializable {
3636
private static final long serialVersionUID = 1L;
3737

3838
@Id
39-
@SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence", initialValue = 28)
39+
@SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence",
40+
initialValue = 28)
4041
@GeneratedValue(generator = "hotel_generator")
4142
private Long id;
4243

spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/domain/Review.java

+3-2
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.
@@ -38,7 +38,8 @@ public class Review implements Serializable {
3838
private static final long serialVersionUID = 1L;
3939

4040
@Id
41-
@SequenceGenerator(name = "review_generator", sequenceName = "review_sequence", initialValue = 64)
41+
@SequenceGenerator(name = "review_generator", sequenceName = "review_sequence",
42+
initialValue = 64)
4243
@GeneratedValue(generator = "review_generator")
4344
private Long id;
4445

spring-boot-samples/spring-boot-sample-data-jpa/src/test/java/sample/data/jpa/SampleDataJpaApplicationTests.java

+3-3
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,8 +45,8 @@
4545
*/
4646
@RunWith(SpringRunner.class)
4747
// Enable JMX so we can test the MBeans (you can't do this in a properties file)
48-
@SpringBootTest(properties = { "spring.jmx.enabled:true",
49-
"spring.datasource.jmx-enabled:true" })
48+
@SpringBootTest(
49+
properties = { "spring.jmx.enabled:true", "spring.datasource.jmx-enabled:true" })
5050
@ActiveProfiles("scratch")
5151
// Separate profile for web tests to avoid clashing databases
5252
public class SampleDataJpaApplicationTests {

spring-boot-samples/spring-boot-sample-data-rest/src/main/java/sample/data/rest/domain/City.java

+3-2
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.
@@ -30,7 +30,8 @@ public class City implements Serializable {
3030
private static final long serialVersionUID = 1L;
3131

3232
@Id
33-
@SequenceGenerator(name = "city_generator", sequenceName = "city_sequence", initialValue = 23)
33+
@SequenceGenerator(name = "city_generator", sequenceName = "city_sequence",
34+
initialValue = 23)
3435
@GeneratedValue(generator = "city_generator")
3536
private Long id;
3637

spring-boot-samples/spring-boot-sample-data-rest/src/main/java/sample/data/rest/domain/Hotel.java

+3-2
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.
@@ -33,7 +33,8 @@ public class Hotel implements Serializable {
3333
private static final long serialVersionUID = 1L;
3434

3535
@Id
36-
@SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence", initialValue = 28)
36+
@SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence",
37+
initialValue = 28)
3738
@GeneratedValue(generator = "hotel_generator")
3839
private Long id;
3940

spring-boot-samples/spring-boot-sample-flyway/src/main/java/sample/flyway/Person.java

+3-2
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.
@@ -25,7 +25,8 @@
2525
public class Person {
2626

2727
@Id
28-
@SequenceGenerator(name = "person_generator", sequenceName = "person_sequence", allocationSize = 1)
28+
@SequenceGenerator(name = "person_generator", sequenceName = "person_sequence",
29+
allocationSize = 1)
2930
@GeneratedValue(generator = "person_generator")
3031
private Long id;
3132

spring-boot-samples/spring-boot-sample-jpa/src/main/java/sample/jpa/domain/Note.java

+3-2
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.
@@ -28,7 +28,8 @@
2828
public class Note {
2929

3030
@Id
31-
@SequenceGenerator(name = "note_generator", sequenceName = "note_sequence", initialValue = 5)
31+
@SequenceGenerator(name = "note_generator", sequenceName = "note_sequence",
32+
initialValue = 5)
3233
@GeneratedValue(generator = "note_generator")
3334
private long id;
3435

spring-boot-samples/spring-boot-sample-jpa/src/main/java/sample/jpa/domain/Tag.java

+3-2
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.
@@ -28,7 +28,8 @@
2828
public class Tag {
2929

3030
@Id
31-
@SequenceGenerator(name = "tag_generator", sequenceName = "tag_sequence", initialValue = 4)
31+
@SequenceGenerator(name = "tag_generator", sequenceName = "tag_sequence",
32+
initialValue = 4)
3233
@GeneratedValue(generator = "tag_generator")
3334
private long id;
3435

spring-boot-samples/spring-boot-sample-kafka/src/test/java/sample/kafka/SampleKafkaApplicationTests.java

+3-2
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.
@@ -39,7 +39,8 @@
3939
* @author Stephane Nicoll
4040
*/
4141
@RunWith(SpringRunner.class)
42-
@SpringBootTest(properties = "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}")
42+
@SpringBootTest(
43+
properties = "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}")
4344
@EmbeddedKafka
4445
public class SampleKafkaApplicationTests {
4546

0 commit comments

Comments
 (0)