Browse Source

Merge pull request #30695 from izeye

* pr/30695:
  Update copyright year of changed files
  Polish

Closes gh-30695
pull/30742/head
Stephane Nicoll 4 years ago
parent
commit
cd8c64e1aa
  1. 2
      buildSrc/src/main/java/org/springframework/boot/build/devtools/DocumentDevtoolsPropertyDefaults.java
  2. 5
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java
  3. 5
      spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java
  4. 2
      spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/testing/springbootapplications/autoconfiguredspringdataelasticsearch/MyDataElasticsearchTests.java
  5. 2
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/running.adoc
  6. 2
      spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleBuild.java
  7. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/MutuallyExclusiveConfigurationPropertiesFailureAnalyzer.java
  8. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/context/MissingWebServerFactoryBeanFailureAnalyzer.java
  9. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/ReactiveWebServerApplicationContext.java
  10. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java
  11. 2
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringBootVersionTests.java

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

@ -41,7 +41,7 @@ import org.gradle.api.tasks.TaskAction; @@ -41,7 +41,7 @@ import org.gradle.api.tasks.TaskAction;
*/
public class DocumentDevtoolsPropertyDefaults extends DefaultTask {
private Configuration devtools;
private final Configuration devtools;
private final RegularFileProperty outputFile;

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 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.
@ -96,8 +96,7 @@ class ThymeleafReactiveAutoConfigurationTests { @@ -96,8 +96,7 @@ class ThymeleafReactiveAutoConfigurationTests {
MediaType.APPLICATION_ATOM_XML, new MediaType("application", "javascript"),
new MediaType("application", "ecmascript"), new MediaType("text", "javascript"),
new MediaType("text", "ecmascript"), MediaType.APPLICATION_JSON,
new MediaType("text", "css"), MediaType.TEXT_PLAIN, MediaType.TEXT_EVENT_STREAM)
.satisfies(System.out::println));
new MediaType("text", "css"), MediaType.TEXT_PLAIN, MediaType.TEXT_EVENT_STREAM));
}
@Test

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 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.
@ -18,6 +18,7 @@ package org.springframework.boot.devtools.env; @@ -18,6 +18,7 @@ package org.springframework.boot.devtools.env;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
@ -74,7 +75,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro @@ -74,7 +75,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
for (String name : properties.stringPropertyNames()) {
map.put(name, properties.getProperty(name));
}
PROPERTIES = map;
PROPERTIES = Collections.unmodifiableMap(map);
}
@Override

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

@ -20,7 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -20,7 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.data.elasticsearch.DataElasticsearchTest;
@DataElasticsearchTest
public class MyDataElasticsearchTests {
class MyDataElasticsearchTests {
@Autowired
@SuppressWarnings("unused")

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

@ -123,7 +123,7 @@ The preceding example sets the value of the `example` project property to `custo @@ -123,7 +123,7 @@ The preceding example sets the value of the `example` project property to `custo
[[running-your-application.reloading-resources]]
== Reloading Resources
If devtools has been added to your project it will automatically monitor your application's classpath for changes.
Note that modified files need to be recompiled for the classpath to update inorder to trigger reloading with devtools.
Note that modified files need to be recompiled for the classpath to update in order to trigger reloading with devtools.
For more details on using devtools, refer to {spring-boot-reference}#using.devtools.restart[this section of the reference documentation].
Alternatively, you can configure `bootRun` such that your application's static resources are loaded from their source location:

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

@ -184,7 +184,7 @@ public class GradleBuild { @@ -184,7 +184,7 @@ public class GradleBuild {
buildOutput = buildOutput.replaceAll(message, "");
}
}
assertThat(buildOutput).doesNotContain("Deprecated").doesNotContain("deprecated");
assertThat(buildOutput).doesNotContainIgnoringCase("deprecated");
}
return result;
}

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

@ -37,7 +37,7 @@ import org.springframework.core.env.Environment; @@ -37,7 +37,7 @@ import org.springframework.core.env.Environment;
import org.springframework.core.env.PropertySource;
/**
* A {@link FailureAnalyzer} that performs analysis of failures caused by an
* A {@link FailureAnalyzer} that performs analysis of failures caused by a
* {@link MutuallyExclusiveConfigurationPropertiesException}.
*
* @author Andy Wilkinson

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

@ -24,7 +24,7 @@ import org.springframework.boot.diagnostics.FailureAnalyzer; @@ -24,7 +24,7 @@ import org.springframework.boot.diagnostics.FailureAnalyzer;
import org.springframework.core.annotation.Order;
/**
* A {@link FailureAnalyzer} that performs analysis of failures caused by an
* A {@link FailureAnalyzer} that performs analysis of failures caused by a
* {@link MissingWebServerFactoryBeanException}.
*
* @author Guirong Hu

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

@ -107,7 +107,7 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli @@ -107,7 +107,7 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli
// Use bean names so that we don't consider the hierarchy
String[] beanNames = getBeanFactory().getBeanNamesForType(ReactiveWebServerFactory.class);
if (beanNames.length == 0) {
throw new MissingWebServerFactoryBeanException(this.getClass(), ReactiveWebServerFactory.class,
throw new MissingWebServerFactoryBeanException(getClass(), ReactiveWebServerFactory.class,
WebApplicationType.REACTIVE);
}
if (beanNames.length > 1) {

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 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.
@ -209,7 +209,7 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon @@ -209,7 +209,7 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
// Use bean names so that we don't consider the hierarchy
String[] beanNames = getBeanFactory().getBeanNamesForType(ServletWebServerFactory.class);
if (beanNames.length == 0) {
throw new MissingWebServerFactoryBeanException(this.getClass(), ServletWebServerFactory.class,
throw new MissingWebServerFactoryBeanException(getClass(), ServletWebServerFactory.class,
WebApplicationType.SERVLET);
}
if (beanNames.length > 1) {

2
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringBootVersionTests.java

@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat; @@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*
* @author Andy Wilkinson
*/
public class SpringBootVersionTests {
class SpringBootVersionTests {
@Test
void getVersionShouldReturnVersionMatchingGradleProperties() throws IOException {

Loading…
Cancel
Save