Skip to content

Commit 566c9e2

Browse files
committed
Fix typos in method names and javadoc; update the documentation to ensure it is more understandable and coherent.
1 parent fa131fa commit 566c9e2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/SanitizableData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public Object getValue() {
7676
}
7777

7878
/**
79-
* Return a new {@link SanitizableData} instance with sanatized value.
79+
* Return a new {@link SanitizableData} instance with sanitized value.
8080
* @return a new sanitizable data instance.
8181
* @since 3.1.0
8282
*/

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/annotation/DiscoveredOperationMethod.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public DiscoveredOperationMethod(Method method, OperationType operationType,
4444
Assert.notNull(annotationAttributes, "AnnotationAttributes must not be null");
4545
List<String> producesMediaTypes = new ArrayList<>();
4646
producesMediaTypes.addAll(Arrays.asList(annotationAttributes.getStringArray("produces")));
47-
producesMediaTypes.addAll(getProducesFromProducable(annotationAttributes));
47+
producesMediaTypes.addAll(getProducesFromProducible(annotationAttributes));
4848
this.producesMediaTypes = Collections.unmodifiableList(producesMediaTypes);
4949
}
5050

51-
private <E extends Enum<E> & Producible<E>> List<String> getProducesFromProducable(
51+
private <E extends Enum<E> & Producible<E>> List<String> getProducesFromProducible(
5252
AnnotationAttributes annotationAttributes) {
5353
Class<?> type = getProducesFrom(annotationAttributes);
5454
if (type == Producible.class) {

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The https://www.testcontainers.org/[Testcontainers] library provides a way to manage services running inside Docker containers.
55
It integrates with JUnit, allowing you to write a test class that can start up a container before any of the tests run.
6-
Testcontainers is especially useful for writing integration tests that talk to a real backend service such as MySQL, MongoDB, Cassandra and others.
6+
Testcontainers are especially useful for writing integration tests that talk to a real backend service such as MySQL, MongoDB, Cassandra and others.
77

88
Testcontainers can be used in a Spring Boot test as follows:
99

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void assertHasClassesOrLocations(MergedContextConfiguration mergedConfig
141141
boolean hasClasses = !ObjectUtils.isEmpty(mergedConfig.getClasses());
142142
boolean hasLocations = !ObjectUtils.isEmpty(mergedConfig.getLocations());
143143
Assert.state(hasClasses || hasLocations,
144-
() -> "No configuration classes or locations found in @SpringApplicationConfiguration. "
144+
() -> "No configuration classes or locations are found in @SpringApplicationConfiguration. "
145145
+ "For default configuration detection to work you need Spring 4.0.3 or better (found "
146146
+ SpringVersion.getVersion() + ").");
147147
}

0 commit comments

Comments
 (0)