Merge branch '3.2.x' into 3.3.x

Closes gh-41857
This commit is contained in:
Moritz Halbritter
2024-08-14 16:47:52 +02:00
23 changed files with 28 additions and 11 deletions

View File

@@ -1 +1 @@
javaFormatVersion=0.0.41
javaFormatVersion=0.0.43

View File

@@ -54,6 +54,7 @@ public class PrometheusProperties {
/**
* Histogram type for backing DistributionSummary and Timer.
* @deprecated since 3.3.0 for removal in 3.5.0
*/
@Deprecated(since = "3.3.0", forRemoval = true)
private HistogramFlavor histogramFlavor = HistogramFlavor.Prometheus;
@@ -230,7 +231,7 @@ public class PrometheusProperties {
@Deprecated(since = "3.3.0", forRemoval = true)
public enum HistogramFlavor {
Prometheus, VictoriaMetrics;
Prometheus, VictoriaMetrics
}

View File

@@ -31,6 +31,7 @@ import org.springframework.web.client.RestTemplate;
*
* @author Moritz Halbritter
* @author Stefan Bratanov
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link ZipkinHttpClientSender}
*/
@Deprecated(since = "3.3.0", forRemoval = true)
class ZipkinRestTemplateSender extends HttpSender {

View File

@@ -30,6 +30,7 @@ import org.springframework.web.reactive.function.client.WebClient;
*
* @author Stefan Bratanov
* @author Moritz Halbritter
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link ZipkinHttpClientSender}
*/
@Deprecated(since = "3.3.0", forRemoval = true)
class ZipkinWebClientSender extends HttpSender {

View File

@@ -31,6 +31,7 @@ import static org.mockito.Mockito.mock;
* Tests for {@link InfluxDbHealthContributorAutoConfiguration}.
*
* @author Eddú Meléndez
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@SuppressWarnings("removal")
@Deprecated(since = "3.2.0", forRemoval = true)

View File

@@ -62,10 +62,10 @@ import org.springframework.web.filter.OncePerRequestFilter;
* @author Andy Wilkinson
* @see JerseyEndpointResourceFactory
*/
public class JerseyWebEndpointIntegrationTests
class JerseyWebEndpointIntegrationTests
extends AbstractWebEndpointIntegrationTests<AnnotationConfigServletWebServerApplicationContext> {
public JerseyWebEndpointIntegrationTests() {
JerseyWebEndpointIntegrationTests() {
super(JerseyWebEndpointIntegrationTests::createApplicationContext,
JerseyWebEndpointIntegrationTests::applyAuthenticatedConfiguration);
}

View File

@@ -35,6 +35,7 @@ import static org.mockito.Mockito.mock;
* Tests for {@link InfluxDbHealthIndicator}.
*
* @author Eddú Meléndez
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@SuppressWarnings("removal")
@Deprecated(since = "3.2.0", forRemoval = true)

View File

@@ -491,6 +491,7 @@ public class ServerProperties {
/**
* Whether to reject requests with illegal header names or values.
* @deprecated since 2.7.12 for removal in 3.3.0
*/
@Deprecated(since = "2.7.12", forRemoval = true) // Remove in 3.3
private boolean rejectIllegalHeader = true;

View File

@@ -41,6 +41,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Moritz Halbritter
* @author Andy Wilkinson
* @author Phillip Webb
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@SuppressWarnings("removal")
@Deprecated(since = "3.2.0", forRemoval = true)

View File

@@ -39,6 +39,7 @@ import static org.mockito.Mockito.never;
* Tests for {@link JooqExceptionTranslator}
*
* @author Andy Wilkinson
* @deprecated since 3.3.0 for removal in 3.5.0
*/
@Deprecated(since = "3.3.0")
@SuppressWarnings("removal")

View File

@@ -42,7 +42,7 @@ import static org.springframework.boot.test.autoconfigure.AutoConfigurationImpor
*/
@DataLdapTest
@Testcontainers(disabledWithoutDocker = true)
public class DataLdapTestDockerTests {
class DataLdapTestDockerTests {
@Container
@ServiceConnection

View File

@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest
@DisabledIfDockerUnavailable
@ImportTestcontainers(LoadTimeWeaverAwareConsumerContainers.class)
public class LoadTimeWeaverAwareConsumerImportTestcontainersTests implements LoadTimeWeaverAwareConsumerContainers {
class LoadTimeWeaverAwareConsumerImportTestcontainersTests implements LoadTimeWeaverAwareConsumerContainers {
@Autowired
private LoadTimeWeaverAwareConsumer consumer;

View File

@@ -43,7 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@TestPropertySource(properties = "spring.testcontainers.beans.startup=parallel")
@DisabledIfDockerUnavailable
@ExtendWith(OutputCaptureExtension.class)
public class TestContainersParallelStartupIntegrationTests {
class TestContainersParallelStartupIntegrationTests {
@Test
void startsInParallel(CapturedOutput out) {

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
* Deprecated configuration properties.
*
* @author Stephane Nicoll
* @deprecated deprecated
*/
@Getter
@Setter

View File

@@ -22,6 +22,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
* Sample for testing method configuration with deprecated class.
*
* @author Stephane Nicoll
* @deprecated deprecated
*/
@Deprecated
public class DeprecatedClassMethodConfig {

View File

@@ -22,6 +22,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
* Deprecated configuration properties.
*
* @author Stephane Nicoll
* @deprecated deprecated
*/
@Deprecated
@ConfigurationProperties(prefix = "deprecated")

View File

@@ -37,7 +37,7 @@ import org.junit.jupiter.api.io.TempDir;
* @author Phillip Webb
*/
@Disabled("Only used for manual testing")
public class VirtualZipPerformanceTests {
class VirtualZipPerformanceTests {
@TempDir
Path temp;

View File

@@ -223,6 +223,8 @@ public final class ClientHttpRequestFactories {
/**
* Support for
* {@link org.springframework.http.client.OkHttp3ClientHttpRequestFactory}.
*
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")

View File

@@ -35,6 +35,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
* Tests for {@link DelegatingApplicationContextInitializer}.
*
* @author Phillip Webb
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")

View File

@@ -36,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* Tests for {@link DelegatingApplicationListener}.
*
* @author Dave Syer
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")

View File

@@ -33,10 +33,11 @@ import static org.assertj.core.api.Assertions.assertThat;
* client.
*
* @author Andy Wilkinson
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@ClassPathOverrides("com.squareup.okhttp3:okhttp:3.14.9")
@ClassPathExclusions({ "httpclient5-*.jar", "jetty-client-*.jar" })
@Deprecated(since = "3.2.0")
@Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")
class ClientHttpRequestFactoriesOkHttp3Tests
extends AbstractClientHttpRequestFactoriesTests<OkHttp3ClientHttpRequestFactory> {

View File

@@ -32,9 +32,10 @@ import static org.assertj.core.api.Assertions.assertThat;
* client.
*
* @author Andy Wilkinson
* @deprecated since 3.2.0 for removal in 3.4.0
*/
@ClassPathExclusions({ "httpclient5-*.jar", "jetty-client-*.jar" })
@Deprecated(since = "3.2.0")
@Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")
class ClientHttpRequestFactoriesOkHttp4Tests
extends AbstractClientHttpRequestFactoriesTests<OkHttp3ClientHttpRequestFactory> {

View File

@@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer
* @author Phillip Webb
*/
public class SampleAntApplicationIT {
class SampleAntApplicationIT {
@Test
void runJar() throws Exception {