Skip to content

Commit

Permalink
Merge branch '2.5.x'
Browse files Browse the repository at this point in the history
Closes gh-28430
Closes gh-28431
  • Loading branch information
wilkinsona committed Oct 22, 2021
2 parents e84c1ab + 585b888 commit 47da706
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class MetricsProperties {

/**
* Whether meter IDs starting with the specified name should be enabled. The longest
* match wins, the key {@code "all"} can also be used to configure all meters.
* match wins, the key 'all' can also be used to configure all meters.
*/
private final Map<String, Boolean> enable = new LinkedHashMap<>();

Expand Down Expand Up @@ -301,15 +301,15 @@ public static class Distribution {
* Whether meter IDs starting with the specified name should publish percentile
* histograms. For monitoring systems that support aggregable percentile
* calculation based on a histogram, this can be set to true. For other systems,
* this has no effect. The longest match wins, the key {@code "all"} can also be
* used to configure all meters.
* this has no effect. The longest match wins, the key 'all' can also be used to
* configure all meters.
*/
private final Map<String, Boolean> percentilesHistogram = new LinkedHashMap<>();

/**
* Specific computed non-aggregable percentiles to ship to the backend for meter
* IDs starting-with the specified name. The longest match wins, the key
* {@code "all"} can also be used to configure all meters.
* IDs starting-with the specified name. The longest match wins, the key 'all' can
* also be used to configure all meters.
*/
private final Map<String, double[]> percentiles = new LinkedHashMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class ManagementServerProperties {
private InetAddress address;

/**
* Management endpoint base path (for instance, {@code '/management'}). Requires a
* custom management.server.port.
* Management endpoint base path (for instance, '/management'). Requires a custom
* management.server.port.
*/
private String basePath = "";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public abstract class AbstractEndpointDocumentationTests {

protected static String describeEnumValues(Class<? extends Enum<?>> enumType) {
return StringUtils.collectionToDelimitedString(Stream.of(enumType.getEnumConstants())
.map((constant) -> "'" + constant.name() + "'").collect(Collectors.toList()), ", ");
.map((constant) -> "`" + constant.name() + "`").collect(Collectors.toList()), ", ");
}

protected OperationPreprocessor limit(String... keys) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void configPropsFilterByPrefix() throws Exception {
preprocessResponse(limit("contexts", getApplicationContext().getId(), "beans")),
responseFields(fieldWithPath("contexts").description("Application contexts keyed by id."),
fieldWithPath("contexts.*.beans.*")
.description("@ConfigurationProperties beans keyed by bean name."),
.description("`@ConfigurationProperties` beans keyed by bean name."),
fieldWithPath("contexts.*.beans.*.prefix")
.description("Prefix applied to the names of the bean's properties."),
subsectionWithPath("contexts.*.beans.*.properties")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void health() throws Exception {
.description("The nested components that make up the health.").optional();
FieldDescriptor componentDetails = subsectionWithPath("components.*.details")
.description("Details of the health of a specific part of the application. "
+ "Presence is controlled by 'management.endpoint.health.show-details'.")
+ "Presence is controlled by `management.endpoint.health.show-details`.")
.optional();
this.mockMvc.perform(get("/actuator/health").accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk())
.andDo(document("health",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void metricWithTags() throws Exception {
"id:Compressed Class Space"))
.andExpect(status().isOk())
.andDo(document("metrics/metric-with-tags", requestParameters(parameterWithName("tag")
.description("A tag to use for drill-down in the form 'name:value'."))));
.description("A tag to use for drill-down in the form `name:value`."))));
}

@Configuration(proxyBeanMethods = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void jsonThreadDump() throws Exception {
.optional().type(JsonFieldType.NUMBER),
fieldWithPath("threads.[].lockOwnerId")
.description("ID of the thread that owns the object on which "
+ "the thread is blocked. '-1' if the "
+ "the thread is blocked. `-1` if the "
+ "thread is not blocked."),
fieldWithPath("threads.[].lockOwnerName")
.description("Name of the thread that owns the "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -922,12 +922,12 @@ public static class Template {
private Boolean mandatory;

/**
* Timeout for {@code receive()} operations.
* Timeout for receive() operations.
*/
private Duration receiveTimeout;

/**
* Timeout for {@code sendAndReceive()} operations.
* Timeout for sendAndReceive() operations.
*/
private Duration replyTimeout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static class Job {

/**
* Comma-separated list of job names to execute on startup (for instance,
* {@code "job1,job2"}). By default, all Jobs found in the context are executed.
* 'job1,job2'). By default, all Jobs found in the context are executed.
*/
private String names = "";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class JacksonProperties {

/**
* Date format string or a fully-qualified date format class name. For instance,
* {@code "yyyy-MM-dd HH:mm:ss"}.
* 'yyyy-MM-dd HH:mm:ss'.
*/
private String dateFormat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class MailProperties {
private static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;

/**
* SMTP server host. For instance, {@code "smtp.example.com"}.
* SMTP server host. For instance, 'smtp.example.com'.
*/
private String host;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ public static class Remoteip {

/**
* Name of the HTTP header from which the remote IP is extracted. For
* instance, {@code "X-FORWARDED-FOR"}.
* instance, 'X-FORWARDED-FOR'.
*/
private String remoteIpHeader;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ public void setStaticPathPattern(String staticPathPattern) {
public static class Format {

/**
* Date format to use, for example {@code "dd/MM/yyyy"}.
* Date format to use, for example 'dd/MM/yyyy'.
*/
private String date;

/**
* Time format to use, for example {@code "HH:mm:ss"}.
* Time format to use, for example 'HH:mm:ss'.
*/
private String time;

/**
* Date-time format to use, for example {@code "yyyy-MM-dd HH:mm:ss"}.
* Date-time format to use, for example 'yyyy-MM-dd HH:mm:ss'.
*/
private String dateTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
public class WebMvcProperties {

/**
* Formatting strategy for message codes. For instance, {@code PREFIX_ERROR_CODE}.
* Formatting strategy for message codes. For instance, 'PREFIX_ERROR_CODE'.
*/
private DefaultMessageCodesResolver.Format messageCodesResolverFormat;

Expand Down Expand Up @@ -456,17 +456,17 @@ public void setUseRegisteredSuffixPattern(boolean useRegisteredSuffixPattern) {
public static class Format {

/**
* Date format to use, for example {@code "dd/MM/yyyy"}.
* Date format to use, for example 'dd/MM/yyyy'.
*/
private String date;

/**
* Time format to use, for example {@code "HH:mm:ss"}.
* Time format to use, for example 'HH:mm:ss'.
*/
private String time;

/**
* Date-time format to use, for example {@code "yyyy-MM-dd HH:mm:ss"}.
* Date-time format to use, for example 'yyyy-MM-dd HH:mm:ss'.
*/
private String dateTime;

Expand Down

0 comments on commit 47da706

Please sign in to comment.