Skip to content

Commit 412b8dd

Browse files
izeyemhalbritter
authored andcommitted
Polish
See gh-39910
1 parent 24218ac commit 412b8dd

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

Diff for: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/liquibase/LiquibasePropertiesTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*
3636
* @author Andy Wilkinson
3737
*/
38-
public class LiquibasePropertiesTests {
38+
class LiquibasePropertiesTests {
3939

4040
@Test
4141
void valuesOfShowSummaryMatchValuesOfUpdateSummaryEnum() {

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ The `info` endpoint publishes information about your Operating System, see {spri
12031203

12041204
[[actuator.endpoints.info.process-information]]
12051205
==== Process Information
1206-
The `info` endpoint publishes information about your process, see {spring-boot-module-api}/info/ProcessInfo.html[`Process`] for more details.
1206+
The `info` endpoint publishes information about your process, see {spring-boot-module-api}/info/ProcessInfo.html[`ProcessInfo`] for more details.
12071207

12081208

12091209

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/deployment/efficient.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To learn more about ahead-of-time processing, please see the <<native-image#nati
7272
https://wiki.openjdk.org/display/crac/Main[Coordinated Restore at Checkpoint] (CRaC) is an OpenJDK project that defines a new Java API to allow you to checkpoint and restore an application on the HotSpot JVM.
7373
It is based on https://github.com/checkpoint-restore/criu[CRIU], a project that implements checkpoint/restore functionality on Linux.
7474

75-
The principle is the following: you start your application almost as usual but with a CRaC enabled version of the JDK like https://bell-sw.com/pages/downloads/?package=jdk-crac[Bellsoft Liberica JDK with CRaC] or https://www.azul.com/downloads/?package=jdk-crac#zulu[Azul Zulu JDK with CRaC].
75+
The principle is the following: you start your application almost as usual but with a CRaC enabled version of the JDK like https://bell-sw.com/pages/downloads/?package=jdk-crac[BellSoft Liberica JDK with CRaC] or https://www.azul.com/downloads/?package=jdk-crac#zulu[Azul Zulu JDK with CRaC].
7676
Then at some point, potentially after some workloads that will warm up your JVM by executing all common code paths, you trigger a checkpoint using an API call, a `jcmd` command, an HTTP endpoint, or a different mechanism.
7777

7878
A memory representation of the running JVM, including its warmness, is then serialized to disk, allowing a fast restoration at a later point, potentially on another machine with a similar operating system and CPU architecture.

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/ssl.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ When used to secure a client-side connection, a `truststore` is typically config
8080
[TIP]
8181
====
8282
PEM content can be used directly for both the `certificate` and `private-key` properties.
83-
If the property values contains `BEGIN` and `END` markers then they will be treated as PEM content rather than a resource location.
83+
If the property values contain `BEGIN` and `END` markers then they will be treated as PEM content rather than a resource location.
8484
8585
The following example shows how a truststore certificate can be defined:
8686

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ include::code:MyRedisConfiguration[]
10551055

10561056
Spring Boot can't tell from `GenericContainer` which container image is used, so the `name` attribute from `@ServiceConnection` must be used to provide that hint.
10571057

1058-
You can also can use the `name` attribute of `@ServiceConnection` to override which connection detail will be used, for example when using custom images.
1058+
You can also use the `name` attribute of `@ServiceConnection` to override which connection detail will be used, for example when using custom images.
10591059
If you are using the Docker image `registry.mycompany.com/mirror/myredis`, you'd use `@ServiceConnection(name="redis")` to ensure `RedisConnectionDetails` are created.
10601060

10611061

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/actuate/observability/AutoConfigureObservability.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* observability.
3131
* <p>
3232
* If this annotation is applied to a sliced test, an in-memory {@code MeterRegistry}, a
33-
* no-op {@code Tracer} and an {@code ObservationRegistry} is added to the application
33+
* no-op {@code Tracer} and an {@code ObservationRegistry} are added to the application
3434
* context.
3535
*
3636
* @author Moritz Halbritter

Diff for: spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/lifecycle/TestContainersParallelStartupWithImportTestcontainersIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
@DisabledIfDockerUnavailable
4545
@ExtendWith(OutputCaptureExtension.class)
4646
@ImportTestcontainers(Containers.class)
47-
public class TestContainersParallelStartupWithImportTestcontainersIntegrationTests {
47+
class TestContainersParallelStartupWithImportTestcontainersIntegrationTests {
4848

4949
@Test
5050
void startsInParallel(CapturedOutput out) {

Diff for: spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/launch/JarFileArchiveTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void getClassPathUrlsWhenHasUnpackCommentUnpacksAndReturnsUrls() throws Exceptio
113113
URL url = urls.iterator().next();
114114
assertThat(url).isNotEqualTo(JarUrl.create(this.file, "nested.jar"));
115115
// The unpack URL must be a raw file URL (see gh-38833)
116-
assertThat(url.toString()).startsWith("file:").endsWith("/nested.jar").doesNotStartWith("jar:");
116+
assertThat(url.toString()).startsWith("file:").endsWith("/nested.jar");
117117
}
118118

119119
@Test

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DataObjectBinder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <T> T bind(ConfigurationPropertyName name, Bindable<T> target, Context context,
6161
* @param context the bind context
6262
* @param exception the exception about to be thrown
6363
*/
64-
default <T> void onUnableToCreateInstance(Bindable<T> target, Binder.Context context, RuntimeException exception) {
64+
default <T> void onUnableToCreateInstance(Bindable<T> target, Context context, RuntimeException exception) {
6565
}
6666

6767
}

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/MissingParameterNamesFailureAnalyzer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class MissingParameterNamesFailureAnalyzer implements FailureAnalyzer {
3939

4040
static final String POSSIBILITY = "This may be due to missing parameter name information";
4141

42-
static String ACTION = """
42+
static final String ACTION = """
4343
Ensure that your compiler is configured to use the '-parameters' flag.
4444
You may need to update both your build tool settings as well as your IDE.
4545
(See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention)

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/Session.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ SessionStoreDirectory getSessionStoreDirectory() {
104104

105105
/**
106106
* Session cookie properties. This class is provided only for back-compatibility
107-
* reasons, consider using {@link org.springframework.boot.web.server.Cookie} whever
107+
* reasons, consider using {@link org.springframework.boot.web.server.Cookie} whenever
108108
* possible.
109109
*/
110110
public static class Cookie extends org.springframework.boot.web.server.Cookie {
@@ -113,7 +113,7 @@ public static class Cookie extends org.springframework.boot.web.server.Cookie {
113113

114114
/**
115115
* Available session tracking modes (mirrors
116-
* {@link jakarta.servlet.SessionTrackingMode}.
116+
* {@link jakarta.servlet.SessionTrackingMode}).
117117
*/
118118
public enum SessionTrackingMode {
119119

Diff for: spring-boot-project/spring-boot/src/main/resources/META-INF/spring.factories

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ org.springframework.boot.diagnostics.analyzer.BeanDefinitionOverrideFailureAnaly
6969
org.springframework.boot.diagnostics.analyzer.BeanNotOfRequiredTypeFailureAnalyzer,\
7070
org.springframework.boot.diagnostics.analyzer.BindFailureAnalyzer,\
7171
org.springframework.boot.diagnostics.analyzer.BindValidationFailureAnalyzer,\
72-
org.springframework.boot.diagnostics.analyzer.UnboundConfigurationPropertyFailureAnalyzer,\
72+
org.springframework.boot.diagnostics.analyzer.InvalidConfigurationPropertyNameFailureAnalyzer,\
73+
org.springframework.boot.diagnostics.analyzer.InvalidConfigurationPropertyValueFailureAnalyzer,\
7374
org.springframework.boot.diagnostics.analyzer.MissingParameterNamesFailureAnalyzer,\
7475
org.springframework.boot.diagnostics.analyzer.MutuallyExclusiveConfigurationPropertiesFailureAnalyzer,\
7576
org.springframework.boot.diagnostics.analyzer.NoSuchMethodFailureAnalyzer,\
7677
org.springframework.boot.diagnostics.analyzer.NoUniqueBeanDefinitionFailureAnalyzer,\
78+
org.springframework.boot.diagnostics.analyzer.PatternParseFailureAnalyzer,\
7779
org.springframework.boot.diagnostics.analyzer.PortInUseFailureAnalyzer,\
80+
org.springframework.boot.diagnostics.analyzer.UnboundConfigurationPropertyFailureAnalyzer,\
7881
org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer,\
79-
org.springframework.boot.diagnostics.analyzer.InvalidConfigurationPropertyNameFailureAnalyzer,\
80-
org.springframework.boot.diagnostics.analyzer.InvalidConfigurationPropertyValueFailureAnalyzer,\
81-
org.springframework.boot.diagnostics.analyzer.PatternParseFailureAnalyzer,\
8282
org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer,\
8383
org.springframework.boot.web.context.MissingWebServerFactoryBeanFailureAnalyzer,\
8484
org.springframework.boot.web.embedded.tomcat.ConnectorStartFailureAnalyzer

Diff for: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactoryTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ void shouldApplyMaxConnections() {
545545
}
546546

547547
@Test
548-
void shouldApplyingMaxConnectionUseConnector() throws Exception {
548+
void shouldApplyMaxConnectionsToConnectors() throws Exception {
549549
JettyServletWebServerFactory factory = getFactory();
550550
factory.setMaxConnections(1);
551551
this.webServer = factory.getWebServer();

0 commit comments

Comments
 (0)