Skip to content

Commit c35a766

Browse files
committed
Fix typos
Closes gh-47816
2 parents 28d699f + d85ccc5 commit c35a766

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

buildSrc/src/main/java/org/springframework/boot/build/RepositoryTransformersExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private List<MavenArtifactRepository> getSpringRepositories() {
115115
List<MavenArtifactRepository> springRepositories = new ArrayList<>(this.project.getRepositories()
116116
.withType(MavenArtifactRepository.class)
117117
.stream()
118-
.filter(this::isSpringReposirory)
118+
.filter(this::isSpringRepository)
119119
.toList());
120120
Function<MavenArtifactRepository, Boolean> bySnapshots = (repository) -> repository.getName()
121121
.contains("snapshot");
@@ -124,7 +124,7 @@ private List<MavenArtifactRepository> getSpringRepositories() {
124124
return springRepositories;
125125
}
126126

127-
private boolean isSpringReposirory(MavenArtifactRepository repository) {
127+
private boolean isSpringRepository(MavenArtifactRepository repository) {
128128
return (repository.getName().startsWith("spring-"));
129129
}
130130

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private Set<String> resolveVersions(String groupId, String artifactId, MavenArti
117117
}
118118

119119
/**
120-
* Retrives the configured credentials of the given {@code repository}. We cannot use
120+
* Retrieves the configured credentials of the given {@code repository}. We cannot use
121121
* {@link MavenArtifactRepository#getCredentials()} as, if the repository has no
122122
* credentials, it has the unwanted side-effect of assigning an empty set of username
123123
* and password credentials to the repository which may cause subsequent "Username

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/container/ContainerImageMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Primarily designed to be attached to {@link BeanDefinition BeanDefinitions} created in
2525
* support of Testcontainers or Docker Compose.
2626
*
27-
* @param imageName the contaimer image name or {@code null} if the image name is not yet
27+
* @param imageName the container image name or {@code null} if the image name is not yet
2828
* known
2929
* @author Phillip Webb
3030
* @since 3.4.0

spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* A resource that is to be made available in tests.
2323
*
24-
* @param path the path of the resoure
24+
* @param path the path of the resource
2525
* @param additional whether the resource should be made available in addition to those
2626
* that already exist elsewhere
2727
* @author Andy Wilkinson

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/FilteredIterableConfigurationPropertiesSource.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ class FilteredIterableConfigurationPropertiesSource extends FilteredConfiguratio
3131

3232
private ConfigurationPropertyName[] filteredNames;
3333

34-
private int numerOfFilteredNames;
34+
private int numberOfFilteredNames;
3535

3636
FilteredIterableConfigurationPropertiesSource(IterableConfigurationPropertySource source,
3737
Predicate<ConfigurationPropertyName> filter) {
3838
super(source, filter);
3939
ConfigurationPropertyName[] filterableNames = getFilterableNames(source);
4040
if (filterableNames != null) {
4141
this.filteredNames = new ConfigurationPropertyName[filterableNames.length];
42-
this.numerOfFilteredNames = 0;
42+
this.numberOfFilteredNames = 0;
4343
for (ConfigurationPropertyName name : filterableNames) {
4444
if (name == null) {
4545
break;
4646
}
4747
if (filter.test(name)) {
48-
this.filteredNames[this.numerOfFilteredNames++] = name;
48+
this.filteredNames[this.numberOfFilteredNames++] = name;
4949
}
5050
}
5151
}
@@ -65,7 +65,7 @@ private ConfigurationPropertyName[] getFilterableNames(IterableConfigurationProp
6565
@Override
6666
public Stream<ConfigurationPropertyName> stream() {
6767
if (this.filteredNames != null) {
68-
return Arrays.stream(this.filteredNames, 0, this.numerOfFilteredNames);
68+
return Arrays.stream(this.filteredNames, 0, this.numberOfFilteredNames);
6969
}
7070
return getSource().stream().filter(getFilter());
7171
}
@@ -78,7 +78,7 @@ protected IterableConfigurationPropertySource getSource() {
7878
@Override
7979
public ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name) {
8080
if (this.filteredNames != null) {
81-
return ConfigurationPropertyState.search(this.filteredNames, 0, this.numerOfFilteredNames,
81+
return ConfigurationPropertyState.search(this.filteredNames, 0, this.numberOfFilteredNames,
8282
name::isAncestorOf);
8383
}
8484
return ConfigurationPropertyState.search(this, name::isAncestorOf);

0 commit comments

Comments
 (0)