Skip to content

Commit cd8c64e

Browse files
committed
Merge pull request #30695 from izeye
* pr/30695: Update copyright year of changed files Polish Closes gh-30695
2 parents 4c5cb77 + 61915aa commit cd8c64e

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

buildSrc/src/main/java/org/springframework/boot/build/devtools/DocumentDevtoolsPropertyDefaults.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*/
4242
public class DocumentDevtoolsPropertyDefaults extends DefaultTask {
4343

44-
private Configuration devtools;
44+
private final Configuration devtools;
4545

4646
private final RegularFileProperty outputFile;
4747

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -96,8 +96,7 @@ void defaultMediaTypes() {
9696
MediaType.APPLICATION_ATOM_XML, new MediaType("application", "javascript"),
9797
new MediaType("application", "ecmascript"), new MediaType("text", "javascript"),
9898
new MediaType("text", "ecmascript"), MediaType.APPLICATION_JSON,
99-
new MediaType("text", "css"), MediaType.TEXT_PLAIN, MediaType.TEXT_EVENT_STREAM)
100-
.satisfies(System.out::println));
99+
new MediaType("text", "css"), MediaType.TEXT_PLAIN, MediaType.TEXT_EVENT_STREAM));
101100
}
102101

103102
@Test

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -18,6 +18,7 @@
1818

1919
import java.io.IOException;
2020
import java.io.InputStream;
21+
import java.util.Collections;
2122
import java.util.HashMap;
2223
import java.util.Map;
2324
import java.util.Properties;
@@ -74,7 +75,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
7475
for (String name : properties.stringPropertyNames()) {
7576
map.put(name, properties.getProperty(name));
7677
}
77-
PROPERTIES = map;
78+
PROPERTIES = Collections.unmodifiableMap(map);
7879
}
7980

8081
@Override

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/testing/springbootapplications/autoconfiguredspringdataelasticsearch/MyDataElasticsearchTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.springframework.boot.test.autoconfigure.data.elasticsearch.DataElasticsearchTest;
2121

2222
@DataElasticsearchTest
23-
public class MyDataElasticsearchTests {
23+
class MyDataElasticsearchTests {
2424

2525
@Autowired
2626
@SuppressWarnings("unused")

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/running.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ The preceding example sets the value of the `example` project property to `custo
123123
[[running-your-application.reloading-resources]]
124124
== Reloading Resources
125125
If devtools has been added to your project it will automatically monitor your application's classpath for changes.
126-
Note that modified files need to be recompiled for the classpath to update inorder to trigger reloading with devtools.
126+
Note that modified files need to be recompiled for the classpath to update in order to trigger reloading with devtools.
127127
For more details on using devtools, refer to {spring-boot-reference}#using.devtools.restart[this section of the reference documentation].
128128

129129
Alternatively, you can configure `bootRun` such that your application's static resources are loaded from their source location:

spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public BuildResult build(String... arguments) {
184184
buildOutput = buildOutput.replaceAll(message, "");
185185
}
186186
}
187-
assertThat(buildOutput).doesNotContain("Deprecated").doesNotContain("deprecated");
187+
assertThat(buildOutput).doesNotContainIgnoringCase("deprecated");
188188
}
189189
return result;
190190
}

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/MutuallyExclusiveConfigurationPropertiesFailureAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.springframework.core.env.PropertySource;
3838

3939
/**
40-
* A {@link FailureAnalyzer} that performs analysis of failures caused by an
40+
* A {@link FailureAnalyzer} that performs analysis of failures caused by a
4141
* {@link MutuallyExclusiveConfigurationPropertiesException}.
4242
*
4343
* @author Andy Wilkinson

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/context/MissingWebServerFactoryBeanFailureAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.core.annotation.Order;
2525

2626
/**
27-
* A {@link FailureAnalyzer} that performs analysis of failures caused by an
27+
* A {@link FailureAnalyzer} that performs analysis of failures caused by a
2828
* {@link MissingWebServerFactoryBeanException}.
2929
*
3030
* @author Guirong Hu

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/ReactiveWebServerApplicationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected String getWebServerFactoryBeanName() {
107107
// Use bean names so that we don't consider the hierarchy
108108
String[] beanNames = getBeanFactory().getBeanNamesForType(ReactiveWebServerFactory.class);
109109
if (beanNames.length == 0) {
110-
throw new MissingWebServerFactoryBeanException(this.getClass(), ReactiveWebServerFactory.class,
110+
throw new MissingWebServerFactoryBeanException(getClass(), ReactiveWebServerFactory.class,
111111
WebApplicationType.REACTIVE);
112112
}
113113
if (beanNames.length > 1) {

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -209,7 +209,7 @@ protected ServletWebServerFactory getWebServerFactory() {
209209
// Use bean names so that we don't consider the hierarchy
210210
String[] beanNames = getBeanFactory().getBeanNamesForType(ServletWebServerFactory.class);
211211
if (beanNames.length == 0) {
212-
throw new MissingWebServerFactoryBeanException(this.getClass(), ServletWebServerFactory.class,
212+
throw new MissingWebServerFactoryBeanException(getClass(), ServletWebServerFactory.class,
213213
WebApplicationType.SERVLET);
214214
}
215215
if (beanNames.length > 1) {

0 commit comments

Comments
 (0)