Fix typos

See gh-36306
pull/36766/head
Christoph Dreis 1 year ago committed by Stephane Nicoll
parent 657890412e
commit 8321887d6a

@ -32,7 +32,7 @@ public final class AutoTimeProperties {
private boolean enabled = true; private boolean enabled = true;
/** /**
* Whether to publish percentile histrograms. * Whether to publish percentile histograms.
*/ */
private boolean percentilesHistogram; private boolean percentilesHistogram;

@ -83,10 +83,10 @@ public class HttpExchangesWebFilter implements WebFilter, Ordered {
private void addExchangeOnCommit(ServerWebExchange exchange, PrincipalAndSession principalAndSession) { private void addExchangeOnCommit(ServerWebExchange exchange, PrincipalAndSession principalAndSession) {
RecordableServerHttpRequest sourceRequest = new RecordableServerHttpRequest(exchange.getRequest()); RecordableServerHttpRequest sourceRequest = new RecordableServerHttpRequest(exchange.getRequest());
HttpExchange.Started startedHtppExchange = HttpExchange.start(sourceRequest); HttpExchange.Started startedHttpExchange = HttpExchange.start(sourceRequest);
exchange.getResponse().beforeCommit(() -> { exchange.getResponse().beforeCommit(() -> {
RecordableServerHttpResponse sourceResponse = new RecordableServerHttpResponse(exchange.getResponse()); RecordableServerHttpResponse sourceResponse = new RecordableServerHttpResponse(exchange.getResponse());
HttpExchange finishedExchange = startedHtppExchange.finish(sourceResponse, HttpExchange finishedExchange = startedHttpExchange.finish(sourceResponse,
principalAndSession::getPrincipal, principalAndSession::getSessionId, this.includes); principalAndSession::getPrincipal, principalAndSession::getSessionId, this.includes);
this.repository.add(finishedExchange); this.repository.add(finishedExchange);
return Mono.empty(); return Mono.empty();

@ -83,7 +83,7 @@ public class HttpExchangesFilter extends OncePerRequestFilter implements Ordered
return; return;
} }
RecordableServletHttpRequest sourceRequest = new RecordableServletHttpRequest(request); RecordableServletHttpRequest sourceRequest = new RecordableServletHttpRequest(request);
HttpExchange.Started startedHtppExchange = HttpExchange.start(sourceRequest); HttpExchange.Started startedHttpExchange = HttpExchange.start(sourceRequest);
int status = HttpStatus.INTERNAL_SERVER_ERROR.value(); int status = HttpStatus.INTERNAL_SERVER_ERROR.value();
try { try {
filterChain.doFilter(request, response); filterChain.doFilter(request, response);
@ -91,7 +91,7 @@ public class HttpExchangesFilter extends OncePerRequestFilter implements Ordered
} }
finally { finally {
RecordableServletHttpResponse sourceResponse = new RecordableServletHttpResponse(response, status); RecordableServletHttpResponse sourceResponse = new RecordableServletHttpResponse(response, status);
HttpExchange finishedExchange = startedHtppExchange.finish(sourceResponse, request::getUserPrincipal, HttpExchange finishedExchange = startedHttpExchange.finish(sourceResponse, request::getUserPrincipal,
() -> getSessionId(request), this.includes); () -> getSessionId(request), this.includes);
this.repository.add(finishedExchange); this.repository.add(finishedExchange);
} }

@ -92,8 +92,8 @@ public class OAuth2ResourceServerProperties {
return this.jwsAlgorithms; return this.jwsAlgorithms;
} }
public void setJwsAlgorithms(List<String> jwsAlgortithms) { public void setJwsAlgorithms(List<String> jwsAlgorithms) {
this.jwsAlgorithms = jwsAlgortithms; this.jwsAlgorithms = jwsAlgorithms;
} }
public String getIssuerUri() { public String getIssuerUri() {

@ -27,7 +27,7 @@ public class MyContainersConfiguration {
@Bean @Bean
@RestartScope @RestartScope
public MongoDBContainer monogDbContainer() { public MongoDBContainer mongoDbContainer() {
return new MongoDBContainer("mongo:5.0"); return new MongoDBContainer("mongo:5.0");
} }

@ -26,7 +26,7 @@ import org.springframework.test.context.DynamicPropertyRegistry;
public class MyContainersConfiguration { public class MyContainersConfiguration {
@Bean @Bean
public MongoDBContainer monogDbContainer(DynamicPropertyRegistry properties) { public MongoDBContainer mongoDbContainer(DynamicPropertyRegistry properties) {
MongoDBContainer container = new MongoDBContainer("mongo:5.0"); MongoDBContainer container = new MongoDBContainer("mongo:5.0");
properties.add("spring.data.mongodb.host", container::getHost); properties.add("spring.data.mongodb.host", container::getHost);
properties.add("spring.data.mongodb.port", container::getFirstMappedPort); properties.add("spring.data.mongodb.port", container::getFirstMappedPort);

@ -68,15 +68,15 @@ class ServiceConnectionAutoConfigurationRegistrar implements ImportBeanDefinitio
private Set<ServiceConnection> getAnnotations(ConfigurableListableBeanFactory beanFactory, String beanName, private Set<ServiceConnection> getAnnotations(ConfigurableListableBeanFactory beanFactory, String beanName,
BeanDefinition beanDefinition) { BeanDefinition beanDefinition) {
Set<ServiceConnection> annoations = new LinkedHashSet<>(); Set<ServiceConnection> annotations = new LinkedHashSet<>();
annoations.addAll(beanFactory.findAllAnnotationsOnBean(beanName, ServiceConnection.class, false)); annotations.addAll(beanFactory.findAllAnnotationsOnBean(beanName, ServiceConnection.class, false));
if (beanDefinition instanceof TestcontainerBeanDefinition testcontainerBeanDefinition) { if (beanDefinition instanceof TestcontainerBeanDefinition testcontainerBeanDefinition) {
testcontainerBeanDefinition.getAnnotations() testcontainerBeanDefinition.getAnnotations()
.stream(ServiceConnection.class) .stream(ServiceConnection.class)
.map(MergedAnnotation::synthesize) .map(MergedAnnotation::synthesize)
.forEach(annoations::add); .forEach(annotations::add);
} }
return annoations; return annotations;
} }
private BeanDefinition getBeanDefinition(ConfigurableListableBeanFactory beanFactory, String beanName) { private BeanDefinition getBeanDefinition(ConfigurableListableBeanFactory beanFactory, String beanName) {

@ -230,7 +230,7 @@ public final class Bindable<T> {
} }
/** /**
* Create an updated {@link Bindable} instance with a specifc bind method. To use * Create an updated {@link Bindable} instance with a specific bind method. To use
* {@link BindMethod#VALUE_OBJECT value object binding}, the current instance must not * {@link BindMethod#VALUE_OBJECT value object binding}, the current instance must not
* have an existing or supplied value. * have an existing or supplied value.
* @param bindMethod the method to use to bind the bindable * @param bindMethod the method to use to bind the bindable

Loading…
Cancel
Save