Fix typos

Closes gh-47818
This commit is contained in:
Stéphane Nicoll
2025-10-27 14:55:39 +01:00
10 changed files with 19 additions and 19 deletions
@@ -115,7 +115,7 @@ public class RepositoryTransformersExtension {
List<MavenArtifactRepository> springRepositories = new ArrayList<>(this.project.getRepositories()
.withType(MavenArtifactRepository.class)
.stream()
.filter(this::isSpringReposirory)
.filter(this::isSpringRepository)
.toList());
Function<MavenArtifactRepository, Boolean> bySnapshots = (repository) -> repository.getName()
.contains("snapshot");
@@ -124,7 +124,7 @@ public class RepositoryTransformersExtension {
return springRepositories;
}
private boolean isSpringReposirory(MavenArtifactRepository repository) {
private boolean isSpringRepository(MavenArtifactRepository repository) {
return (repository.getName().startsWith("spring-"));
}
@@ -117,7 +117,7 @@ final class MavenMetadataVersionResolver implements VersionResolver {
}
/**
* Retrives the configured credentials of the given {@code repository}. We cannot use
* Retrieves the configured credentials of the given {@code repository}. We cannot use
* {@link MavenArtifactRepository#getCredentials()} as, if the repository has no
* credentials, it has the unwanted side-effect of assigning an empty set of username
* and password credentials to the repository which may cause subsequent "Username
@@ -26,7 +26,7 @@ import org.springframework.core.AttributeAccessor;
* Primarily designed to be attached to {@link BeanDefinition BeanDefinitions} created in
* support of Testcontainers or Docker Compose.
*
* @param imageName the contaimer image name or {@code null} if the image name is not yet
* @param imageName the container image name or {@code null} if the image name is not yet
* known
* @author Phillip Webb
* @since 3.4.0
@@ -33,7 +33,7 @@ class FilteredIterableConfigurationPropertiesSource extends FilteredConfiguratio
private ConfigurationPropertyName @Nullable [] filteredNames;
private int numerOfFilteredNames;
private int numberOfFilteredNames;
FilteredIterableConfigurationPropertiesSource(IterableConfigurationPropertySource source,
Predicate<ConfigurationPropertyName> filter) {
@@ -41,13 +41,13 @@ class FilteredIterableConfigurationPropertiesSource extends FilteredConfiguratio
@Nullable ConfigurationPropertyName[] filterableNames = getFilterableNames(source);
if (filterableNames != null) {
this.filteredNames = new ConfigurationPropertyName[filterableNames.length];
this.numerOfFilteredNames = 0;
this.numberOfFilteredNames = 0;
for (ConfigurationPropertyName name : filterableNames) {
if (name == null) {
break;
}
if (filter.test(name)) {
this.filteredNames[this.numerOfFilteredNames++] = name;
this.filteredNames[this.numberOfFilteredNames++] = name;
}
}
}
@@ -68,7 +68,7 @@ class FilteredIterableConfigurationPropertiesSource extends FilteredConfiguratio
@Override
public Stream<ConfigurationPropertyName> stream() {
if (this.filteredNames != null) {
return Arrays.stream(this.filteredNames, 0, this.numerOfFilteredNames);
return Arrays.stream(this.filteredNames, 0, this.numberOfFilteredNames);
}
return getSource().stream().filter(getFilter());
}
@@ -81,7 +81,7 @@ class FilteredIterableConfigurationPropertiesSource extends FilteredConfiguratio
@Override
public ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name) {
if (this.filteredNames != null) {
return ConfigurationPropertyState.search(this.filteredNames, 0, this.numerOfFilteredNames,
return ConfigurationPropertyState.search(this.filteredNames, 0, this.numberOfFilteredNames,
name::isAncestorOf);
}
return ConfigurationPropertyState.search(this, name::isAncestorOf);
@@ -402,7 +402,7 @@ If you need to customize HTTP Service clients beyond basic properties, you can u
For `RestClient` backed HTTP Service clients, you can declare a bean that implements javadoc:org.springframework.web.client.support.RestClientHttpServiceGroupConfigurer[].
For `WebClient` backed HTTP Service clients you can declare a bean that implements javadoc:org.springframework.web.reactive.function.client.support.WebClientHttpServiceGroupConfigurer[].
Both work in the same way and will be automatically applied by Spring Boot's auto-configuraiton.
Both work in the same way and will be automatically applied by Spring Boot's auto-configuration.
For example, the following configuration would add a group customizer that adds an HTTP header to each outgoing request containing the group name:
@@ -58,13 +58,13 @@ public class SslHealthIndicator extends AbstractHealthIndicator {
protected void doHealthCheck(Health.Builder builder) throws Exception {
List<CertificateChainInfo> validCertificateChains = new ArrayList<>();
List<CertificateChainInfo> invalidCertificateChains = new ArrayList<>();
List<CertificateChainInfo> expiringCerificateChains = new ArrayList<>();
List<CertificateChainInfo> expiringCertificateChains = new ArrayList<>();
for (BundleInfo bundle : this.sslInfo.getBundles()) {
for (CertificateChainInfo certificateChain : bundle.getCertificateChains()) {
if (containsOnlyValidCertificates(certificateChain)) {
validCertificateChains.add(certificateChain);
if (containsExpiringCertificate(certificateChain)) {
expiringCerificateChains.add(certificateChain);
expiringCertificateChains.add(certificateChain);
}
}
else if (containsInvalidCertificate(certificateChain)) {
@@ -73,7 +73,7 @@ public class SslHealthIndicator extends AbstractHealthIndicator {
}
}
builder.status((invalidCertificateChains.isEmpty()) ? Status.UP : Status.OUT_OF_SERVICE);
builder.withDetail("expiringChains", expiringCerificateChains);
builder.withDetail("expiringChains", expiringCertificateChains);
builder.withDetail("invalidChains", invalidCertificateChains);
builder.withDetail("validChains", validCertificateChains);
}
@@ -84,10 +84,10 @@ class HealthEndpointConfiguration {
@Bean
@ConditionalOnMissingBean
HealthEndpoint healthEndpoint(HealthContributorRegistry halthContributorRegistry,
HealthEndpoint healthEndpoint(HealthContributorRegistry healthContributorRegistry,
ObjectProvider<ReactiveHealthContributorRegistry> reactiveHealthContributorRegistry,
HealthEndpointGroups groups, HealthEndpointProperties properties) {
return new HealthEndpoint(halthContributorRegistry, reactiveHealthContributorRegistry.getIfAvailable(), groups,
return new HealthEndpoint(healthContributorRegistry, reactiveHealthContributorRegistry.getIfAvailable(), groups,
properties.getLogging().getSlowIndicatorThreshold());
}
@@ -80,14 +80,14 @@ public class JacksonComponentModule extends SimpleModule implements BeanFactoryA
BeanFactory beanFactory = this.beanFactory;
while (beanFactory != null) {
if (beanFactory instanceof ListableBeanFactory listableBeanFactory) {
addJackonComponentBeans(listableBeanFactory);
addJacksonComponentBeans(listableBeanFactory);
}
beanFactory = (beanFactory instanceof HierarchicalBeanFactory hierarchicalBeanFactory)
? hierarchicalBeanFactory.getParentBeanFactory() : null;
}
}
private void addJackonComponentBeans(ListableBeanFactory beanFactory) {
private void addJacksonComponentBeans(ListableBeanFactory beanFactory) {
Map<String, Object> beans = beanFactory.getBeansWithAnnotation(JacksonComponent.class);
for (Object bean : beans.values()) {
addJacksonComponentBean(bean);
@@ -22,7 +22,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Condition;
/**
* {@link Condition} used to check if security username or passowrd properties have been
* {@link Condition} used to check if security username or password properties have been
* set or there are no alternatives to the user details manager available.
*
* @author Andy Wilkinson
@@ -21,7 +21,7 @@ import java.nio.file.Path;
/**
* A resource that is to be made available in tests.
*
* @param path the path of the resoure
* @param path the path of the resource
* @param additional whether the resource should be made available in addition to those
* that already exist elsewhere
* @author Andy Wilkinson