Fix typos in code and documentation
See gh-31734
This commit is contained in:
committed by
Phillip Webb
parent
4bcec6e0ee
commit
dbfc6bded4
@@ -142,7 +142,7 @@ public class InvocationContext {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the context is capable of resolving an argument of the given
|
||||
* Returns whether the context is capable of resolving an argument of the given
|
||||
* {@code type}. Note that, even when {@code true} is returned,
|
||||
* {@link #resolveArgument argument resolution} will return {@code null} if no
|
||||
* argument of the required type is available.
|
||||
|
||||
@@ -49,9 +49,9 @@ public interface Producible<E extends Enum<E> & Producible<E>> {
|
||||
|
||||
/**
|
||||
* Return if this enum value should be used as the default value when an accept header
|
||||
* of */* is provided, or if the accept header is missing. Only one value
|
||||
* can be marked as default. If no value is marked, then the value with the highest
|
||||
* {@link Enum#ordinal() ordinal} is used as the default.
|
||||
* of */* is provided, or if the {@code Accept} header is missing. Only
|
||||
* one value can be marked as default. If no value is marked, then the value with the
|
||||
* highest {@link Enum#ordinal() ordinal} is used as the default.
|
||||
* @return if this value should be used as the default value
|
||||
* @since 2.5.6
|
||||
*/
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Link {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the {@link #getHref() href} is templated.
|
||||
* Returns whether the {@link #getHref() href} is templated.
|
||||
* @return {@code true} if the href is templated, otherwise {@code false}
|
||||
*/
|
||||
public boolean isTemplated() {
|
||||
|
||||
@@ -22,7 +22,7 @@ import reactor.core.publisher.Mono;
|
||||
* Strategy interface used to contribute {@link Health} to the results returned from the
|
||||
* reactive variant of the {@link HealthEndpoint}.
|
||||
* <p>
|
||||
* This is non blocking contract that is meant to be used in a reactive application. See
|
||||
* This is non-blocking contract that is meant to be used in a reactive application. See
|
||||
* {@link HealthIndicator} for the traditional contract.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
|
||||
@@ -84,9 +84,9 @@ class StartupTimeMetricsListenerTests {
|
||||
Tags tags = Tags.of("foo", "bar");
|
||||
this.listener = new StartupTimeMetricsListener(this.registry, "started", "ready", tags);
|
||||
this.listener.onApplicationEvent(new ApplicationReadyEvent(application, null, null, Duration.ofSeconds(2)));
|
||||
TimeGauge applicationReadyGague = this.registry.find("ready").timeGauge();
|
||||
assertThat(applicationReadyGague).isNotNull();
|
||||
assertThat(applicationReadyGague.getId().getTags()).containsExactlyElementsOf(tags);
|
||||
TimeGauge applicationReadyGauge = this.registry.find("ready").timeGauge();
|
||||
assertThat(applicationReadyGauge).isNotNull();
|
||||
assertThat(applicationReadyGauge.getId().getTags()).containsExactlyElementsOf(tags);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user