Skip to content

Commit dbfc6bd

Browse files
marcwrobelphilwebb
authored andcommitted
Fix typos in code and documentation
See gh-31734
1 parent 4bcec6e commit dbfc6bd

File tree

59 files changed

+102
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+102
-107
lines changed

buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/Upgrade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.springframework.boot.build.bom.bomr.version.DependencyVersion;
2121

2222
/**
23-
* An upgrade to change a {@link Library} to use a new version}.
23+
* An upgrade to change a {@link Library} to use a new version.
2424
*
2525
* @author Andy Wilkinson
2626
*/

buildSrc/src/main/java/org/springframework/boot/build/testing/TestResultsOverview.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
import org.gradle.tooling.events.OperationCompletionListener;
3030

3131
/**
32-
* {@link BuildService} that provides an overview of all of the test failures in the
33-
* build.
32+
* {@link BuildService} that provides an overview of all the test failures in the build.
3433
*
3534
* @author Andy Wilkinson
3635
*/

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ void parseWhenVersionWithCombinedPatchAndQualifierShouldReturnCombinedPatchAndQu
5353
}
5454

5555
@Test
56-
void parseWhenCalendarVersionShouldReturnArticatVersionDependencyVersion() {
56+
void parseWhenCalendarVersionShouldReturnArtifactVersionDependencyVersion() {
5757
assertThat(DependencyVersion.parse("2020.0.0")).isInstanceOf(CalendarVersionDependencyVersion.class);
5858
}
5959

6060
@Test
61-
void parseWhenCalendarVersionWithModifierShouldReturnArticatVersionDependencyVersion() {
61+
void parseWhenCalendarVersionWithModifierShouldReturnArtifactVersionDependencyVersion() {
6262
assertThat(DependencyVersion.parse("2020.0.0-M1")).isInstanceOf(CalendarVersionDependencyVersion.class);
6363
}
6464

buildSrc/src/test/resources/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ required to use this feature.</description>
805805
<type>long</type>
806806
<required>false</required>
807807
<editable>true</editable>
808-
<description>The number of milli-seconds to wait between each attempt to check if the spring
808+
<description>The number of milliseconds to wait between each attempt to check if the spring
809809
application is ready.</description>
810810
</parameter>
811811
<parameter>
@@ -880,7 +880,7 @@ application.</description>
880880
<type>int</type>
881881
<required>false</required>
882882
<editable>true</editable>
883-
<description>The port to use to lookup the platform MBeanServer if the application has been
883+
<description>The port to use to look up the platform MBeanServer if the application has been
884884
forked.</description>
885885
</parameter>
886886
<parameter>

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ConditionalOnEnabledHealthIndicator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
import org.springframework.context.annotation.Conditional;
2626

2727
/**
28-
* {@link Conditional @Conditional} that checks whether or not a default health indicator
29-
* is enabled. Matches if the value of the {@code management.health.<name>.enabled}
30-
* property is {@code true}. Otherwise, matches if the value of the
28+
* {@link Conditional @Conditional} that checks whether a default health indicator is
29+
* enabled. Matches if the value of the {@code management.health.<name>.enabled} property
30+
* is {@code true}. Otherwise, matches if the value of the
3131
* {@code management.health.defaults.enabled} property is {@code true} or if it is not
3232
* configured.
3333
*

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public abstract class HealthProperties {
4444
private Show showComponents;
4545

4646
/**
47-
* Roles used to determine whether or not a user is authorized to be shown details.
48-
* When empty, all authenticated users are authorized.
47+
* Roles used to determine whether a user is authorized to be shown details. When
48+
* empty, all authenticated users are authorized.
4949
*/
5050
private Set<String> roles = new HashSet<>();
5151

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/info/ConditionalOnEnabledInfoContributor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import org.springframework.context.annotation.Conditional;
2626

2727
/**
28-
* {@link Conditional @Conditional} that checks whether or not an info contributor is
29-
* enabled. Matches if the value of the {@code management.info.<name>.enabled} property is
28+
* {@link Conditional @Conditional} that checks whether an info contributor is enabled.
29+
* Matches if the value of the {@code management.info.<name>.enabled} property is
3030
* {@code true}. Otherwise, use the specific {@link #fallback() fallback} method.
3131
*
3232
* @author Stephane Nicoll

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ConditionalOnEnabledMetricsExport.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
import org.springframework.context.annotation.Conditional;
2626

2727
/**
28-
* {@link Conditional @Conditional} that checks whether or not a metrics exporter is
29-
* enabled. If the {@code management.metrics.export.<name>.enabled} property is configured
30-
* then its value is used to determine if it matches. Otherwise, matches if the value of
31-
* the {@code management.metrics.export.defaults.enabled} property is {@code true} or if
32-
* it is not configured.
28+
* {@link Conditional @Conditional} that checks whether a metrics exporter is enabled. If
29+
* the {@code management.metrics.export.<name>.enabled} property is configured then its
30+
* value is used to determine if it matches. Otherwise, matches if the value of the
31+
* {@code management.metrics.export.defaults.enabled} property is {@code true} or if it is
32+
* not configured.
3333
*
3434
* @author Chris Bono
3535
* @since 2.4.0

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ganglia/GangliaProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class GangliaProperties {
6666
private GMetric.UDPAddressingMode addressingMode = GMetric.UDPAddressingMode.MULTICAST;
6767

6868
/**
69-
* Time to live for metrics on Ganglia. Set the multi-cast Time-To-Live to be one
69+
* Time to live for metrics on Ganglia. Set the multicast Time-To-Live to be one
7070
* greater than the number of hops (routers) between the hosts.
7171
*/
7272
private Integer timeToLive = 1;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public <T> T resolveArgument(Class<T> argumentType) {
142142
}
143143

144144
/**
145-
* Returns whether or not the context is capable of resolving an argument of the given
145+
* Returns whether the context is capable of resolving an argument of the given
146146
* {@code type}. Note that, even when {@code true} is returned,
147147
* {@link #resolveArgument argument resolution} will return {@code null} if no
148148
* argument of the required type is available.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public interface Producible<E extends Enum<E> & Producible<E>> {
4949

5050
/**
5151
* Return if this enum value should be used as the default value when an accept header
52-
* of &#42;&#47;&#42; is provided, or if the accept header is missing. Only one value
53-
* can be marked as default. If no value is marked, then the value with the highest
54-
* {@link Enum#ordinal() ordinal} is used as the default.
52+
* of &#42;&#47;&#42; is provided, or if the {@code Accept} header is missing. Only
53+
* one value can be marked as default. If no value is marked, then the value with the
54+
* highest {@link Enum#ordinal() ordinal} is used as the default.
5555
* @return if this value should be used as the default value
5656
* @since 2.5.6
5757
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public String getHref() {
5252
}
5353

5454
/**
55-
* Returns whether or not the {@link #getHref() href} is templated.
55+
* Returns whether the {@link #getHref() href} is templated.
5656
* @return {@code true} if the href is templated, otherwise {@code false}
5757
*/
5858
public boolean isTemplated() {

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ReactiveHealthIndicator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Strategy interface used to contribute {@link Health} to the results returned from the
2323
* reactive variant of the {@link HealthEndpoint}.
2424
* <p>
25-
* This is non blocking contract that is meant to be used in a reactive application. See
25+
* This is non-blocking contract that is meant to be used in a reactive application. See
2626
* {@link HealthIndicator} for the traditional contract.
2727
*
2828
* @author Stephane Nicoll

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListenerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ void metricRecordedWithoutMainAppClassTagAndAdditionalTags() {
8484
Tags tags = Tags.of("foo", "bar");
8585
this.listener = new StartupTimeMetricsListener(this.registry, "started", "ready", tags);
8686
this.listener.onApplicationEvent(new ApplicationReadyEvent(application, null, null, Duration.ofSeconds(2)));
87-
TimeGauge applicationReadyGague = this.registry.find("ready").timeGauge();
88-
assertThat(applicationReadyGague).isNotNull();
89-
assertThat(applicationReadyGague.getId().getTags()).containsExactlyElementsOf(tags);
87+
TimeGauge applicationReadyGauge = this.registry.find("ready").timeGauge();
88+
assertThat(applicationReadyGauge).isNotNull();
89+
assertThat(applicationReadyGauge.getId().getTags()).containsExactlyElementsOf(tags);
9090
}
9191

9292
@Test

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@
8080

8181
/**
8282
* The annotation type decorating a bean that should be checked. The condition matches
83-
* when all of the annotations specified are defined on beans in the
84-
* {@link BeanFactory}.
83+
* when all the annotations specified are defined on beans in the {@link BeanFactory}.
8584
* @return the class-level annotation types to check
8685
*/
8786
Class<? extends Annotation>[] annotation() default {};
8887

8988
/**
90-
* The names of beans to check. The condition matches when all of the bean names
89+
* The names of beans to check. The condition matches when all the bean names
9190
* specified are contained in the {@link BeanFactory}.
9291
* @return the names of beans to check
9392
*/

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public class FlywayProperties {
345345
private String oracleKerberosCacheFile;
346346

347347
/**
348-
* Location of the Oracle Wallet, used to sign-in to the database automatically.
348+
* Location of the Oracle Wallet, used to sign in to the database automatically.
349349
* Requires Flyway Teams.
350350
*/
351351
private String oracleWalletLocation;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ public static class Streams {
695695
private String applicationId;
696696

697697
/**
698-
* Whether or not to auto-start the streams factory bean.
698+
* Whether to auto-start the streams factory bean.
699699
*/
700700
private boolean autoStartup = true;
701701

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManager
140140
protected abstract Map<String, Object> getVendorProperties();
141141

142142
/**
143-
* Customize vendor properties before they are used. Allows for post processing (for
143+
* Customize vendor properties before they are used. Allows for post-processing (for
144144
* example to configure JTA specific settings).
145145
* @param vendorProperties the vendor properties to customize
146146
*/

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ConditionalOnEnabledResourceChain.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
import org.springframework.context.annotation.Conditional;
2626

2727
/**
28-
* {@link Conditional @Conditional} that checks whether or not the Spring resource
29-
* handling chain is enabled. Matches if
30-
* {@link WebProperties.Resources.Chain#getEnabled()} is {@code true} or if
31-
* {@code webjars-locator-core} is on the classpath.
28+
* {@link Conditional @Conditional} that checks whether the Spring resource handling chain
29+
* is enabled. Matches if {@link WebProperties.Resources.Chain#getEnabled()} is
30+
* {@code true} or if {@code webjars-locator-core} is on the classpath.
3231
*
3332
* @author Stephane Nicoll
3433
* @since 1.3.0

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/OnEnabledResourceChainCondition.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
import org.springframework.util.ClassUtils;
2828

2929
/**
30-
* {@link Condition} that checks whether or not the Spring resource handling chain is
31-
* enabled.
30+
* {@link Condition} that checks whether the Spring resource handling chain is enabled.
3231
*
3332
* @author Stephane Nicoll
3433
* @author Phillip Webb

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void determineServerUriWithDeprecatedPropertyShouldOverrideDefault() {
141141

142142
@Test
143143
@Deprecated
144-
void determineServerUriWithCustoUriShouldTakePrecedenceOverDeprecatedProperty() {
144+
void determineServerUriWithCustomUriShouldTakePrecedenceOverDeprecatedProperty() {
145145
URI customUri = URI.create("bolt://localhost:4242");
146146
URI anotherCustomURI = URI.create("bolt://localhost:2424");
147147
Neo4jProperties properties = new Neo4jProperties();

spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ void setOutput(String output) {
105105
}
106106

107107
/**
108-
* Whether or not the project archive should be extracted in the output location. If
109-
* the {@link #getOutput() output} ends with "/", the project is extracted
110-
* automatically.
108+
* Whether the project archive should be extracted in the output location. If the
109+
* {@link #getOutput() output} ends with "/", the project is extracted automatically.
111110
* @return {@code true} if the archive should be extracted, otherwise {@code false}
112111
*/
113112
boolean isExtract() {
@@ -242,7 +241,7 @@ void setFormat(String format) {
242241
}
243242

244243
/**
245-
* Whether or not the type should be detected based on the build and format value.
244+
* Whether the type should be detected based on the build and format value.
246245
* @return {@code true} if type detection will be performed, otherwise {@code false}
247246
*/
248247
boolean isDetectType() {

spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void compileAndRun() throws Exception {
9696
stop();
9797
Class<?>[] compiledSources = compile();
9898
monitorForChanges();
99-
// Run in new thread to ensure that the context classloader is setup
99+
// Run in new thread to ensure that the context classloader is set up
100100
this.runThread = new RunThread(compiledSources);
101101
this.runThread.start();
102102
this.runThread.join();

spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/AstUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static boolean hasAtLeastOneInterface(ClassNode classNode, String... type
143143
* optionally removing it from the block at the same time.
144144
* @param block a block statement (class definition)
145145
* @param name the name to look for
146-
* @param remove whether or not the extracted closure should be removed
146+
* @param remove whether the extracted closure should be removed
147147
* @return a beans Closure if one can be found, null otherwise
148148
*/
149149
public static ClosureExpression getClosure(BlockStatement block, String name, boolean remove) {

spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ protected boolean canAdd() {
105105
}
106106

107107
/**
108-
* Create a nested {@link DependencyCustomizer} that only applies if all of the
109-
* specified class names are not on the class path.
108+
* Create a nested {@link DependencyCustomizer} that only applies if all the specified
109+
* class names are not on the class path.
110110
* @param classNames the class names to test
111111
* @return a nested {@link DependencyCustomizer}
112112
*/

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private void cleanupCaches() {
327327
}
328328

329329
private void cleanupKnownCaches() {
330-
// Whilst not strictly necessary it helps to cleanup soft reference caches
330+
// Whilst not strictly necessary it helps to clean up soft reference caches
331331
// early rather than waiting for memory limits to be reached
332332
ResolvableType.clearCache();
333333
cleanCachedIntrospectionResultsCache();

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/server/RestartServerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void updateSetsJarLastModified(@TempDir File directory) throws Exception {
8989
@Test
9090
void updateReplacesLocalFilesWhenPossible(@TempDir File directory) throws Exception {
9191
// This is critical for Cloud Foundry support where the application is
92-
// run exploded and resources can be found from the servlet root (outside of the
92+
// run exploded and resources can be found from the servlet root (outside the
9393
// classloader)
9494
File classFile = new File(directory, "ClassA.class");
9595
FileCopyUtils.copy("abc".getBytes(), classFile);

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import static org.hamcrest.Matchers.allOf;
3030

3131
/**
32-
* JUnit {@code @Rule} to capture output from System.out and System.err.
32+
* JUnit {@code @Rule} to capture output from {@code System.out} and {@code System.err}.
3333
* <p>
3434
* To use add as a {@link Rule @Rule}:
3535
*

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
/**
5858
* Convenient alternative of {@link RestTemplate} that is suitable for integration tests.
59-
* {@code TestRestTemplate} is fault tolerant. This means that 4xx and 5xx do not result
59+
* {@code TestRestTemplate} is fault-tolerant. This means that 4xx and 5xx do not result
6060
* in an exception being thrown and can instead be detected via the {@link ResponseEntity
6161
* response entity} and its {@link ResponseEntity#getStatusCode() status code}.
6262
* <p>
@@ -641,35 +641,35 @@ public void delete(URI url) {
641641
}
642642

643643
/**
644-
* Return the value of the Allow header for the given URI.
644+
* Return the value of the {@code Allow} header for the given URI.
645645
* <p>
646646
* URI Template variables are expanded using the given URI variables, if any.
647647
* @param url the URL
648648
* @param urlVariables the variables to expand in the template
649-
* @return the value of the allow header
649+
* @return the value of the {@code Allow} header
650650
* @see RestTemplate#optionsForAllow(java.lang.String, java.lang.Object[])
651651
*/
652652
public Set<HttpMethod> optionsForAllow(String url, Object... urlVariables) {
653653
return this.restTemplate.optionsForAllow(url, urlVariables);
654654
}
655655

656656
/**
657-
* Return the value of the Allow header for the given URI.
657+
* Return the value of the {@code Allow} header for the given URI.
658658
* <p>
659659
* URI Template variables are expanded using the given map.
660660
* @param url the URL
661661
* @param urlVariables the variables to expand in the template
662-
* @return the value of the allow header
662+
* @return the value of the {@code Allow} header
663663
* @see RestTemplate#optionsForAllow(java.lang.String, java.util.Map)
664664
*/
665665
public Set<HttpMethod> optionsForAllow(String url, Map<String, ?> urlVariables) {
666666
return this.restTemplate.optionsForAllow(url, urlVariables);
667667
}
668668

669669
/**
670-
* Return the value of the Allow header for the given URL.
670+
* Return the value of the {@code Allow} header for the given URL.
671671
* @param url the URL
672-
* @return the value of the allow header
672+
* @return the value of the {@code Allow} header
673673
* @see RestTemplate#optionsForAllow(java.net.URI)
674674
*/
675675
public Set<HttpMethod> optionsForAllow(URI url) {

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageArchive.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public ImageConfig getImageConfig() {
9898
}
9999

100100
/**
101-
* Return the create data of the archive.
101+
* Return the create date of the archive.
102102
* @return the create date
103103
*/
104104
public Instant getCreateDate() {

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/VolumeName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static VolumeName random(String prefix) {
7272
* Factory method to create a new {@link VolumeName} with a random name.
7373
* @param prefix the prefix to use with the random name
7474
* @param randomLength the number of chars in the random part of the name
75-
* @return a randomly volume reference
75+
* @return a randomly named volume reference
7676
*/
7777
public static VolumeName random(String prefix, int randomLength) {
7878
return of(RandomString.generate(prefix, randomLength));

0 commit comments

Comments
 (0)