Merge branch '2.7.x'

pull/30862/head
Andy Wilkinson 3 years ago
commit 541ab69aff

@ -43,7 +43,7 @@ public class DynatraceProperties extends StepRegistryProperties {
private String apiToken; private String apiToken;
/** /**
* URI to ship metrics to. Should be used for SaaS, self managed instances or to * URI to ship metrics to. Should be used for SaaS, self-managed instances or to
* en-route through an internal proxy. * en-route through an internal proxy.
*/ */
private String uri; private String uri;

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -357,7 +357,7 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
/** /**
* Create a new {@link OperationKey} instance. * Create a new {@link OperationKey} instance.
* @param key the underlying key for the operation * @param key the underlying key for the operation
* @param description a human readable description of the key * @param description a human-readable description of the key
*/ */
public OperationKey(Object key, Supplier<String> description) { public OperationKey(Object key, Supplier<String> description) {
Assert.notNull(key, "Key must not be null"); Assert.notNull(key, "Key must not be null");

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -225,7 +225,7 @@ public class MetricsEndpoint {
} }
/** /**
* A set of tags for further dimensional drilldown and their potential values. * A set of tags for further dimensional drill-down and their potential values.
*/ */
public static final class AvailableTag { public static final class AvailableTag {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -115,7 +115,7 @@ public class PrometheusPushGatewayManager {
this.pushGateway.delete(this.job, this.groupingKey); this.pushGateway.delete(this.job, this.groupingKey);
} }
catch (Throwable ex) { catch (Throwable ex) {
logger.warn("Unexpected exception thrown while deleting metrics from Promethues Pushgateway", ex); logger.warn("Unexpected exception thrown while deleting metrics from Prometheus Pushgateway", ex);
} }
} }

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -133,7 +133,7 @@ class CassandraDriverHealthIndicatorTests {
} }
@Test @Test
void healthWithcassandraDownShouldReturnDown() { void healthWithCassandraDownShouldReturnDown() {
CqlSession session = mock(CqlSession.class); CqlSession session = mock(CqlSession.class);
given(session.getMetadata()).willThrow(new DriverTimeoutException("Test Exception")); given(session.getMetadata()).willThrow(new DriverTimeoutException("Test Exception"));
CassandraDriverHealthIndicator healthIndicator = new CassandraDriverHealthIndicator(session); CassandraDriverHealthIndicator healthIndicator = new CassandraDriverHealthIndicator(session);

@ -73,9 +73,9 @@ class StartupTimeMetricsListenerTests {
void metricRecordedWithoutMainAppClassTag() { void metricRecordedWithoutMainAppClassTag() {
SpringApplication application = mock(SpringApplication.class); SpringApplication application = mock(SpringApplication.class);
this.listener.onApplicationEvent(new ApplicationStartedEvent(application, null, null, Duration.ofSeconds(2))); this.listener.onApplicationEvent(new ApplicationStartedEvent(application, null, null, Duration.ofSeconds(2)));
TimeGauge applicationStartedGague = this.registry.find("application.started.time").timeGauge(); TimeGauge applicationStartedGauge = this.registry.find("application.started.time").timeGauge();
assertThat(applicationStartedGague).isNotNull(); assertThat(applicationStartedGauge).isNotNull();
assertThat(applicationStartedGague.getId().getTags()).isEmpty(); assertThat(applicationStartedGauge.getId().getTags()).isEmpty();
} }
@Test @Test

@ -659,7 +659,7 @@ class QuartzEndpointTests {
} }
@Test @Test
void quartzJobWithSensitiveDataMapAndCustomSanitizier() throws SchedulerException { void quartzJobWithSensitiveDataMapAndCustomSanitizer() throws SchedulerException {
JobDetail job = JobBuilder.newJob(Job.class).withIdentity("hello", "samples").usingJobData("test", "value") JobDetail job = JobBuilder.newJob(Job.class).withIdentity("hello", "samples").usingJobData("test", "value")
.usingJobData("secret", "value").build(); .usingJobData("secret", "value").build();
mockJobs(job); mockJobs(job);

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -37,7 +37,7 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessage
/** /**
* {@link ApplicationListener} to trigger early initialization in a background thread of * {@link ApplicationListener} to trigger early initialization in a background thread of
* time consuming tasks. * time-consuming tasks.
* <p> * <p>
* Set the {@link #IGNORE_BACKGROUNDPREINITIALIZER_PROPERTY_NAME} system property to * Set the {@link #IGNORE_BACKGROUNDPREINITIALIZER_PROPERTY_NAME} system property to
* {@code true} to disable this mechanism and let such initialization happen in the * {@code true} to disable this mechanism and let such initialization happen in the

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -264,7 +264,7 @@ public class CassandraProperties {
private DefaultConsistencyLevel serialConsistency; private DefaultConsistencyLevel serialConsistency;
/** /**
* How many rows will be retrieved simultaneously in a single network roundtrip. * How many rows will be retrieved simultaneously in a single network round-trip.
*/ */
private int pageSize; private int pageSize;

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -22,8 +22,7 @@ import com.couchbase.client.java.env.ClusterEnvironment;
* Callback interface that can be implemented by beans wishing to customize the * Callback interface that can be implemented by beans wishing to customize the
* {@link ClusterEnvironment} via a * {@link ClusterEnvironment} via a
* {@link com.couchbase.client.java.env.ClusterEnvironment.Builder * {@link com.couchbase.client.java.env.ClusterEnvironment.Builder
* ClusterEnvironment.Builder} whilst retaining default auto-configuration.whilst * ClusterEnvironment.Builder} whilst retaining default auto-configuration.
* retaining default auto-configuration.
* *
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 2.3.0 * @since 2.3.0

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -32,7 +32,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class GsonProperties { public class GsonProperties {
/** /**
* Whether to generate non executable JSON by prefixing the output with some special * Whether to generate non-executable JSON by prefixing the output with some special
* text. * text.
*/ */
private Boolean generateNonExecutableJson; private Boolean generateNonExecutableJson;

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -22,7 +22,7 @@ import io.r2dbc.spi.ConnectionFactoryOptions.Builder;
/** /**
* Callback interface that can be implemented by beans wishing to customize the * Callback interface that can be implemented by beans wishing to customize the
* {@link ConnectionFactoryOptions} via a {@link Builder} whilst retaining default * {@link ConnectionFactoryOptions} via a {@link Builder} whilst retaining default
* auto-configuration.whilst retaining default auto-configuration. * auto-configuration.
* *
* @author Mark Paluch * @author Mark Paluch
* @since 2.3.0 * @since 2.3.0

@ -34,7 +34,7 @@ import org.springframework.web.multipart.support.StandardServletMultipartResolve
import org.springframework.web.servlet.DispatcherServlet; import org.springframework.web.servlet.DispatcherServlet;
/** /**
* {@link EnableAutoConfiguration Auto-configuration} for multi-part uploads. Adds a * {@link EnableAutoConfiguration Auto-configuration} for multipart uploads. Adds a
* {@link StandardServletMultipartResolver} if none is present, and adds a * {@link StandardServletMultipartResolver} if none is present, and adds a
* {@link jakarta.servlet.MultipartConfigElement multipartConfigElement} if none is * {@link jakarta.servlet.MultipartConfigElement multipartConfigElement} if none is
* otherwise defined. The {@link ServletWebServerApplicationContext} will associate the * otherwise defined. The {@link ServletWebServerApplicationContext} will associate the

@ -31,7 +31,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
* Auto configuration for WebSocket reactive server in Tomcat, Jetty or Undertow. Requires * Auto-configuration for WebSocket reactive server in Tomcat, Jetty or Undertow. Requires
* the appropriate WebSocket modules to be on the classpath. * the appropriate WebSocket modules to be on the classpath.
* <p> * <p>
* If Tomcat's WebSocket support is detected on the classpath we add a customizer that * If Tomcat's WebSocket support is detected on the classpath we add a customizer that

@ -1673,7 +1673,7 @@
"description": "Check the change log location exists.", "description": "Check the change log location exists.",
"defaultValue": true, "defaultValue": true,
"deprecation": { "deprecation": {
"reason": "Liquibase has it's own check that checks if the change log location exists making this property redundant.", "reason": "Liquibase has its own check that checks if the change log location exists making this property redundant.",
"level": "error" "level": "error"
} }
}, },

@ -81,7 +81,7 @@ class RabbitStreamConfigurationTests {
} }
@Test @Test
void whenCustomEnvironmenIsDefinedThenAutoConfiguredEnvironmentBacksOff() { void whenCustomEnvironmentIsDefinedThenAutoConfiguredEnvironmentBacksOff() {
this.contextRunner.withUserConfiguration(CustomEnvironmentConfiguration.class).run((context) -> { this.contextRunner.withUserConfiguration(CustomEnvironmentConfiguration.class).run((context) -> {
assertThat(context).hasSingleBean(Environment.class); assertThat(context).hasSingleBean(Environment.class);
assertThat(context.getBean(Environment.class)) assertThat(context.getBean(Environment.class))

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -191,7 +191,7 @@ class ProjectGenerationRequest {
} }
/** /**
* The type of project to generate. Should match one of the advertized type that the * The type of project to generate. Should match one of the advertised type that the
* service supports. If not set, the default is retrieved from the service metadata. * service supports. If not set, the default is retrieved from the service metadata.
* @return the project type * @return the project type
*/ */

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -37,7 +37,7 @@ public abstract class CompilerAutoConfiguration {
* Strategy method used to determine when compiler auto-configuration should be * Strategy method used to determine when compiler auto-configuration should be
* applied. Defaults to always. * applied. Defaults to always.
* @param classNode the class node * @param classNode the class node
* @return {@code true} if the compiler should be auto configured using this class. If * @return {@code true} if the compiler should be auto-configured using this class. If
* this method returns {@code false} no other strategy methods will be called. * this method returns {@code false} no other strategy methods will be called.
*/ */
public boolean matches(ClassNode classNode) { public boolean matches(ClassNode classNode) {

@ -62,11 +62,11 @@ Sanitization can be customized in two different ways.
The default patterns used by the `env` and `configprops` endpoints can be replaced using configprop:management.endpoint.env.keys-to-sanitize[] and configprop:management.endpoint.configprops.keys-to-sanitize[] respectively. The default patterns used by the `env` and `configprops` endpoints can be replaced using configprop:management.endpoint.env.keys-to-sanitize[] and configprop:management.endpoint.configprops.keys-to-sanitize[] respectively.
Alternatively, additional patterns can be configured using configprop:management.endpoint.env.additional-keys-to-sanitize[] and configprop:management.endpoint.configprops.additional-keys-to-sanitize[]. Alternatively, additional patterns can be configured using configprop:management.endpoint.env.additional-keys-to-sanitize[] and configprop:management.endpoint.configprops.additional-keys-to-sanitize[].
To take more control over the santization, define a `SanitizingFunction` bean. To take more control over the sanitization, define a `SanitizingFunction` bean.
The `SanitizableData` with which the function is called provides access to the key and value as well as the `PropertySource` from which they came. The `SanitizableData` with which the function is called provides access to the key and value as well as the `PropertySource` from which they came.
This allows you to, for example, sanitize every value that comes from a particular property source. This allows you to, for example, sanitize every value that comes from a particular property source.
Each `SanitizingFunction` is called in order until a function changes the value of the santizable data. Each `SanitizingFunction` is called in order until a function changes the value of the sanitizable data.
If no function changes its value, the built-in key-based santization is performed. If no function changes its value, the built-in key-based sanitization is performed.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -27,7 +27,7 @@ import org.springframework.boot.buildpack.platform.io.Content;
import org.springframework.boot.buildpack.platform.io.Owner; import org.springframework.boot.buildpack.platform.io.Owner;
/** /**
* A short lived builder that is created for each {@link Lifecycle} run. * A short-lived builder that is created for each {@link Lifecycle} run.
* *
* @author Phillip Webb * @author Phillip Webb
* @author Scott Frederick * @author Scott Frederick

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -155,7 +155,7 @@ public final class ImageReference {
/** /**
* Return an {@link ImageReference} containing either a tag or a digest. If neither * Return an {@link ImageReference} containing either a tag or a digest. If neither
* the digest or the tag has been defined then tag {@code latest} is used. * the digest nor the tag has been defined then tag {@code latest} is used.
* @return the image reference in tagged or digest form * @return the image reference in tagged or digest form
*/ */
public ImageReference inTaggedOrDigestForm() { public ImageReference inTaggedOrDigestForm() {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -64,7 +64,7 @@ class BuildpackReferenceTests {
} }
@Test @Test
void hasPrefixWhenPrifixMismatchReturnsFalse() { void hasPrefixWhenPrefixMismatchReturnsFalse() {
BuildpackReference reference = BuildpackReference.of("test"); BuildpackReference reference = BuildpackReference.of("test");
assertThat(reference.hasPrefix("st")).isFalse(); assertThat(reference.hasPrefix("st")).isFalse();
} }

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -213,7 +213,7 @@ public final class Metadata {
.filter((item) -> item.isOfItemType(this.itemType) && name.equals(item.getName())) .filter((item) -> item.isOfItemType(this.itemType) && name.equals(item.getName()))
.collect(Collectors.toList()); .collect(Collectors.toList());
if (candidates.size() > 1) { if (candidates.size() > 1) {
throw new IllegalStateException("More that one metadata item with name '" + name + "': " + candidates); throw new IllegalStateException("More than one metadata item with name '" + name + "': " + candidates);
} }
return (candidates.size() == 1) ? candidates.get(0) : null; return (candidates.size() == 1) ? candidates.get(0) : null;
} }

@ -80,7 +80,7 @@ class RunningDocumentationTests {
} }
@TestTemplate @TestTemplate
void bootRunSystemPropetry() { void bootRunSystemProperty() {
assertThat(this.gradleBuild.script("src/docs/gradle/running/boot-run-system-property") assertThat(this.gradleBuild.script("src/docs/gradle/running/boot-run-system-property")
.build("-Pexample=custom", "configuredSystemProperties").getOutput()) .build("-Pexample=custom", "configuredSystemProperties").getOutput())
.contains("com.example.property = custom"); .contains("com.example.property = custom");

@ -29,8 +29,8 @@ import org.springframework.util.StringUtils;
/** /**
* Helper class to build Gradle {@link Project Projects} for test fixtures. Wraps * Helper class to build Gradle {@link Project Projects} for test fixtures. Wraps
* functionality of Gradle's own {@link ProjectBuilder} in order to workaround an issue on * functionality of Gradle's own {@link ProjectBuilder} in order to work around an issue
* JDK 17 and 18. * on JDK 17 and 18.
* *
* @author Christoph Dreis * @author Christoph Dreis
* @see <a href="https://github.com/gradle/gradle/issues/16857">Gradle Support JDK 17</a> * @see <a href="https://github.com/gradle/gradle/issues/16857">Gradle Support JDK 17</a>

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -187,7 +187,7 @@ public class BuildImageMojo extends AbstractPackagerMojo {
private LayoutFactory layoutFactory; private LayoutFactory layoutFactory;
/** /**
* Return the type of archive that should be used when buiding the image. * Return the type of archive that should be used when building the image.
* @return the value of the {@code layout} parameter, or {@code null} if the parameter * @return the value of the {@code layout} parameter, or {@code null} if the parameter
* is not provided * is not provided
*/ */

@ -69,7 +69,7 @@ public class StartMojo extends AbstractApplicationRunMojo {
private int jmxPort; private int jmxPort;
/** /**
* The number of milli-seconds to wait between each attempt to check if the spring * The number of milliseconds to wait between each attempt to check if the spring
* application is ready. * application is ready.
*/ */
@Parameter(property = "spring-boot.start.wait", defaultValue = "500") @Parameter(property = "spring-boot.start.wait", defaultValue = "500")

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -251,7 +251,7 @@ class BeanDefinitionLoader {
if (resource instanceof ClassPathResource) { if (resource instanceof ClassPathResource) {
// A simple package without a '.' may accidentally get loaded as an XML // A simple package without a '.' may accidentally get loaded as an XML
// document if we're not careful. The result of getInputStream() will be // document if we're not careful. The result of getInputStream() will be
// a file list of the package content. We double check here that it's not // a file list of the package content. We double-check here that it's not
// actually a package. // actually a package.
String path = ((ClassPathResource) resource).getPath(); String path = ((ClassPathResource) resource).getPath();
if (path.indexOf('.') == -1) { if (path.indexOf('.') == -1) {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -203,7 +203,7 @@ public final class ConfigurationPropertiesBean {
* @param applicationContext the source application context * @param applicationContext the source application context
* @param bean the bean to consider * @param bean the bean to consider
* @param beanName the bean name * @param beanName the bean name
* @return a configuration properties bean or {@code null} if the neither the bean or * @return a configuration properties bean or {@code null} if the neither the bean nor
* factory method are annotated with * factory method are annotated with
* {@link ConfigurationProperties @ConfigurationProperties} * {@link ConfigurationProperties @ConfigurationProperties}
*/ */

@ -29,7 +29,7 @@ import org.springframework.util.StringUtils;
/** /**
* A configuration property name composed of elements separated by dots. User created * A configuration property name composed of elements separated by dots. User created
* names may contain the characters "{@code a-z}" "{@code 0-9}") and "{@code -}", they * names may contain the characters "{@code a-z}" "{@code 0-9}") and "{@code -}", they
* must be lower-case and must start with an alpha-numeric character. The "{@code -}" is * must be lower-case and must start with an alphanumeric character. The "{@code -}" is
* used purely for formatting, i.e. "{@code foo-bar}" and "{@code foobar}" are considered * used purely for formatting, i.e. "{@code foo-bar}" and "{@code foobar}" are considered
* equivalent. * equivalent.
* <p> * <p>
@ -448,7 +448,7 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
int i2 = 0; int i2 = 0;
while (i1 < l1) { while (i1 < l1) {
if (i2 >= l2) { if (i2 >= l2) {
return remainderIsNotAlphaNumberic(e1, i, i1); return remainderIsNotAlphanumeric(e1, i, i1);
} }
char ch1 = indexed1 ? e1.charAt(i, i1) : Character.toLowerCase(e1.charAt(i, i1)); char ch1 = indexed1 ? e1.charAt(i, i1) : Character.toLowerCase(e1.charAt(i, i1));
char ch2 = indexed2 ? e2.charAt(i, i2) : Character.toLowerCase(e2.charAt(i, i2)); char ch2 = indexed2 ? e2.charAt(i, i2) : Character.toLowerCase(e2.charAt(i, i2));
@ -467,12 +467,12 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
} }
} }
if (i2 < l2) { if (i2 < l2) {
return remainderIsNotAlphaNumberic(e2, i, i2); return remainderIsNotAlphanumeric(e2, i, i2);
} }
return true; return true;
} }
private boolean remainderIsNotAlphaNumberic(Elements elements, int element, int index) { private boolean remainderIsNotAlphanumeric(Elements elements, int element, int index) {
if (elements.getType(element).isIndexed()) { if (elements.getType(element).isIndexed()) {
return false; return false;
} }
@ -1049,7 +1049,7 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
DASHED(false), DASHED(false),
/** /**
* The element contains non uniform characters and will need to be converted. * The element contains non-uniform characters and will need to be converted.
*/ */
NON_UNIFORM(false), NON_UNIFORM(false),

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -39,7 +39,7 @@ import org.springframework.util.Assert;
* getConfigurationProperty} call attempts to * getConfigurationProperty} call attempts to
* {@link PropertyMapper#map(ConfigurationPropertyName) map} the * {@link PropertyMapper#map(ConfigurationPropertyName) map} the
* {@link ConfigurationPropertyName} to one or more {@code String} based names. This * {@link ConfigurationPropertyName} to one or more {@code String} based names. This
* allows fast property resolution for well formed property sources. * allows fast property resolution for well-formed property sources.
* <p> * <p>
* When possible the {@link SpringIterableConfigurationPropertySource} will be used in * When possible the {@link SpringIterableConfigurationPropertySource} will be used in
* preference to this implementation since it supports full "relaxed" style resolution. * preference to this implementation since it supports full "relaxed" style resolution.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -137,8 +137,8 @@ public class TaskExecutorBuilder {
} }
/** /**
* Set whether core threads are allow to time out. When enabled, this enables dynamic * Set whether core threads are allowed to time out. When enabled, this enables
* growing and shrinking of the pool. * dynamic growing and shrinking of the pool.
* @param allowCoreThreadTimeOut if core threads are allowed to time out * @param allowCoreThreadTimeOut if core threads are allowed to time out
* @return a new builder instance * @return a new builder instance
*/ */

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -31,7 +31,7 @@ public interface ConfigurableWebServerFactory extends WebServerFactory, ErrorPag
/** /**
* Sets the port that the web server should listen on. If not specified port '8080' * Sets the port that the web server should listen on. If not specified port '8080'
* will be used. Use port -1 to disable auto-start (i.e start the web application * will be used. Use port -1 to disable auto-start (i.e. start the web application
* context but not have it listen to any port). * context but not have it listen to any port).
* @param port the port to set * @param port the port to set
*/ */

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -151,7 +151,7 @@ public class ServletRegistrationBean<T extends Servlet> extends DynamicRegistrat
/** /**
* Set the {@link MultipartConfigElement multi-part configuration}. * Set the {@link MultipartConfigElement multi-part configuration}.
* @param multipartConfig the multi-part configuration to set or {@code null} * @param multipartConfig the multipart configuration to set or {@code null}
*/ */
public void setMultipartConfig(MultipartConfigElement multipartConfig) { public void setMultipartConfig(MultipartConfigElement multipartConfig) {
this.multipartConfig = multipartConfig; this.multipartConfig = multipartConfig;

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -65,7 +65,7 @@ class ConfigTreeConfigDataLocationResolverTests {
} }
@Test @Test
void resolveWilcardPattern() throws Exception { void resolveWildcardPattern() throws Exception {
File directoryA = new File(this.temp, "a"); File directoryA = new File(this.temp, "a");
File directoryB = new File(this.temp, "b"); File directoryB = new File(this.temp, "b");
directoryA.mkdirs(); directoryA.mkdirs();

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -57,8 +57,8 @@ class CharSequenceToObjectConverterTests {
StringBuilder source = new StringBuilder("1,2,3"); StringBuilder source = new StringBuilder("1,2,3");
TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class); TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class);
TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)); TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class));
List<String> conveted = (List<String>) conversionService.convert(source, sourceType, targetType); List<String> converted = (List<String>) conversionService.convert(source, sourceType, targetType);
assertThat(conveted).containsExactly("1", "2", "3"); assertThat(converted).containsExactly("1", "2", "3");
} }
@Test @Test
@ -69,8 +69,8 @@ class CharSequenceToObjectConverterTests {
StringBuilder source = new StringBuilder("1,2,3"); StringBuilder source = new StringBuilder("1,2,3");
TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class); TypeDescriptor sourceType = TypeDescriptor.valueOf(StringBuilder.class);
TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)); TypeDescriptor targetType = TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class));
List<String> conveted = (List<String>) conversionService.convert(source, sourceType, targetType); List<String> converted = (List<String>) conversionService.convert(source, sourceType, targetType);
assertThat(conveted).containsExactly("1", "2", "3"); assertThat(converted).containsExactly("1", "2", "3");
} }
static Stream<? extends Arguments> conversionServices() { static Stream<? extends Arguments> conversionServices() {

@ -81,7 +81,7 @@ class BindFailureAnalyzerTests {
} }
@Test // gh-27028 @Test // gh-27028
void bindExceptionDueToClassNotFoundConvertionFailure() { void bindExceptionDueToClassNotFoundConversionFailure() {
FailureAnalysis analysis = performAnalysis(GenericFailureConfiguration.class, FailureAnalysis analysis = performAnalysis(GenericFailureConfiguration.class,
"test.foo.type=com.example.Missing"); "test.foo.type=com.example.Missing");
assertThat(analysis.getDescription()).contains(failure("test.foo.type", "com.example.Missing", assertThat(analysis.getDescription()).contains(failure("test.foo.type", "com.example.Missing",

@ -139,9 +139,9 @@ class ConnectionFactoryBuilderTests {
@Test @Test
void buildWhenDerivedWithNewDatabaseReturnsNewConnectionFactory() { void buildWhenDerivedWithNewDatabaseReturnsNewConnectionFactory() {
String intialDatabaseName = UUID.randomUUID().toString(); String initialDatabaseName = UUID.randomUUID().toString();
ConnectionFactory connectionFactory = ConnectionFactoryBuilder ConnectionFactory connectionFactory = ConnectionFactoryBuilder
.withUrl(EmbeddedDatabaseConnection.H2.getUrl(intialDatabaseName)).build(); .withUrl(EmbeddedDatabaseConnection.H2.getUrl(initialDatabaseName)).build();
ConnectionFactoryOptions initialOptions = ((OptionsCapableConnectionFactory) connectionFactory).getOptions(); ConnectionFactoryOptions initialOptions = ((OptionsCapableConnectionFactory) connectionFactory).getOptions();
String derivedDatabaseName = UUID.randomUUID().toString(); String derivedDatabaseName = UUID.randomUUID().toString();
ConnectionFactory derived = ConnectionFactoryBuilder.derivedFrom(connectionFactory) ConnectionFactory derived = ConnectionFactoryBuilder.derivedFrom(connectionFactory)

@ -220,7 +220,7 @@ class ApplicationContextRequestMatcherTests {
private volatile Throwable ex; private volatile Throwable ex;
@Override @Override
public void uncaughtException(Thread thead, Throwable ex) { public void uncaughtException(Thread thread, Throwable ex) {
this.ex = ex; this.ex = ex;
} }

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.assertThat;
class SampleBootstrapRegistryApplicationTests { class SampleBootstrapRegistryApplicationTests {
@Test @Test
void testBootrapper(CapturedOutput output) { void testBootstrapper(CapturedOutput output) {
SampleBootstrapRegistryApplication.main(new String[0]); SampleBootstrapRegistryApplication.main(new String[0]);
assertThat(output).contains("svn my-data from svn / example.com[secret]") assertThat(output).contains("svn my-data from svn / example.com[secret]")
.contains("client smoketest.bootstrapregistry.app.MySubversionClient"); .contains("client smoketest.bootstrapregistry.app.MySubversionClient");

@ -28,7 +28,7 @@ import org.springframework.test.context.ActiveProfiles;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
/** /**
* Tests that profiles are activited in the correct order from an * Tests that profiles are activated in the correct order from an
* {@link EnvironmentPostProcessor}. * {@link EnvironmentPostProcessor}.
* *
* @author Madhura Bhave * @author Madhura Bhave

@ -56,12 +56,12 @@ class SampleSessionWebFluxApplicationTests {
return response.bodyToMono(String.class) return response.bodyToMono(String.class)
.map((sessionId) -> Tuples.of(response.cookies().getFirst("SESSION").getValue(), sessionId)); .map((sessionId) -> Tuples.of(response.cookies().getFirst("SESSION").getValue(), sessionId));
}).flatMap((tuple) -> { }).flatMap((tuple) -> {
String sesssionCookie = tuple.getT1(); String sessionCookie = tuple.getT1();
return client.get().cookie("SESSION", sesssionCookie).exchangeToMono((response) -> { return client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> {
assertThat(response.statusCode()).isEqualTo(HttpStatus.OK); assertThat(response.statusCode()).isEqualTo(HttpStatus.OK);
return response.bodyToMono(String.class) return response.bodyToMono(String.class)
.doOnNext((sessionId) -> assertThat(sessionId).isEqualTo(tuple.getT2())) .doOnNext((sessionId) -> assertThat(sessionId).isEqualTo(tuple.getT2()))
.thenReturn(sesssionCookie); .thenReturn(sessionCookie);
}); });
}).delayElement(Duration.ofSeconds(10)) }).delayElement(Duration.ofSeconds(10))
.flatMap((sessionCookie) -> client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> { .flatMap((sessionCookie) -> client.get().cookie("SESSION", sessionCookie).exchangeToMono((response) -> {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -37,7 +37,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
/** /**
* A Basic Spring MVC Test for the Sample Controller" * A Basic Spring MVC Test for the Sample Controller.
* *
* @author Biju Kunjummen * @author Biju Kunjummen
* @author Doo-Hwan, Kwak * @author Doo-Hwan, Kwak

@ -37,7 +37,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
/** /**
* A Basic Spring MVC Test for the Sample Controller" * A Basic Spring MVC Test for the Sample Controller.
* *
* @author Biju Kunjummen * @author Biju Kunjummen
* @author Doo-Hwan, Kwak * @author Doo-Hwan, Kwak

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
/** /**
* Sets up the timer for the multi-player snake game WebSocket example. * Sets up the timer for the multiplayer snake game WebSocket example.
*/ */
public final class SnakeTimer { public final class SnakeTimer {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
/** /**
* Sets up the timer for the multi-player snake game WebSocket example. * Sets up the timer for the multiplayer snake game WebSocket example.
*/ */
public final class SnakeTimer { public final class SnakeTimer {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
/** /**
* Sets up the timer for the multi-player snake game WebSocket example. * Sets up the timer for the multiplayer snake game WebSocket example.
*/ */
public final class SnakeTimer { public final class SnakeTimer {

Loading…
Cancel
Save