mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Fix Checkstyle upgrade
Closes gh-38746
This commit is contained in:
parent
4699923b68
commit
45c32854a5
|
@ -30,8 +30,13 @@ if (versions.springFramework.contains("-")) {
|
|||
}
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
toolVersion = "10.12.4"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
||||
checkstyle("com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}")
|
||||
checkstyle("io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}")
|
||||
|
||||
implementation(platform("org.springframework:spring-framework-bom:${versions.springFramework}"))
|
||||
implementation("com.diffplug.gradle:goomph:3.37.2")
|
||||
|
@ -57,10 +62,6 @@ dependencies {
|
|||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
toolVersion = "10.12.4"
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
annotationProcessorPlugin {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -243,6 +243,8 @@ class JavaConventions {
|
|||
checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));
|
||||
String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();
|
||||
DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();
|
||||
checkstyleDependencies
|
||||
.add(project.getDependencies().create("com.puppycrawl.tools:checkstyle:" + checkstyle.getToolVersion()));
|
||||
checkstyleDependencies
|
||||
.add(project.getDependencies().create("io.spring.javaformat:spring-javaformat-checkstyle:" + version));
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -62,7 +62,7 @@ class SkipSslVerificationHttpRequestFactory extends SimpleClientHttpRequestFacto
|
|||
return context.getSocketFactory();
|
||||
}
|
||||
|
||||
private static class SkipHostnameVerifier implements HostnameVerifier {
|
||||
private static final class SkipHostnameVerifier implements HostnameVerifier {
|
||||
|
||||
@Override
|
||||
public boolean verify(String s, SSLSession sslSession) {
|
||||
|
@ -71,7 +71,7 @@ class SkipSslVerificationHttpRequestFactory extends SimpleClientHttpRequestFacto
|
|||
|
||||
}
|
||||
|
||||
private static class SkipX509TrustManager implements X509TrustManager {
|
||||
private static final class SkipX509TrustManager implements X509TrustManager {
|
||||
|
||||
@Override
|
||||
public X509Certificate[] getAcceptedIssuers() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -54,7 +54,7 @@ public class LogFileWebEndpointAutoConfiguration {
|
|||
return new LogFileWebEndpoint(logFile.getIfAvailable(), properties.getExternalFile());
|
||||
}
|
||||
|
||||
private static class LogFileCondition extends SpringBootCondition {
|
||||
private static final class LogFileCondition extends SpringBootCondition {
|
||||
|
||||
@Override
|
||||
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -93,7 +93,7 @@ public class JerseyServerMetricsAutoConfiguration {
|
|||
/**
|
||||
* An {@link AnnotationFinder} that uses {@link AnnotationUtils}.
|
||||
*/
|
||||
private static class AnnotationUtilsAnnotationFinder implements AnnotationFinder {
|
||||
private static final class AnnotationUtilsAnnotationFinder implements AnnotationFinder {
|
||||
|
||||
@Override
|
||||
public <A extends Annotation> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -311,7 +311,7 @@ public final class EndpointRequest {
|
|||
/**
|
||||
* Factory used to create a {@link RequestMatcher}.
|
||||
*/
|
||||
private static class RequestMatcherFactory {
|
||||
private static final class RequestMatcherFactory {
|
||||
|
||||
RequestMatcher antPath(RequestMatcherProvider matcherProvider, String... parts) {
|
||||
StringBuilder pattern = new StringBuilder();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -73,7 +73,7 @@ class CloudFoundryReactiveHealthEndpointWebExtensionTests {
|
|||
});
|
||||
}
|
||||
|
||||
private static class TestHealthIndicator implements HealthIndicator {
|
||||
private static final class TestHealthIndicator implements HealthIndicator {
|
||||
|
||||
@Override
|
||||
public Health health() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -70,7 +70,7 @@ class CloudFoundryHealthEndpointWebExtensionTests {
|
|||
});
|
||||
}
|
||||
|
||||
private static class TestHealthIndicator implements HealthIndicator {
|
||||
private static final class TestHealthIndicator implements HealthIndicator {
|
||||
|
||||
@Override
|
||||
public Health health() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -138,7 +138,7 @@ class HealthEndpointDocumentationTests extends MockMvcEndpointDocumentationTests
|
|||
|
||||
}
|
||||
|
||||
private static class TestHealthEndpointGroup implements HealthEndpointGroup {
|
||||
private static final class TestHealthEndpointGroup implements HealthEndpointGroup {
|
||||
|
||||
private final StatusAggregator statusAggregator = new SimpleStatusAggregator();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -493,11 +493,11 @@ class ObservationAutoConfigurationTests {
|
|||
|
||||
}
|
||||
|
||||
private static class CustomContext extends Context {
|
||||
private static final class CustomContext extends Context {
|
||||
|
||||
}
|
||||
|
||||
private static class CalledHandlers {
|
||||
private static final class CalledHandlers {
|
||||
|
||||
private final List<ObservationHandler<?>> calledHandlers = new ArrayList<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -74,7 +74,7 @@ class ObservationRegistryConfigurerIntegrationTests {
|
|||
|
||||
}
|
||||
|
||||
private static class CalledCustomizers {
|
||||
private static final class CalledCustomizers {
|
||||
|
||||
private final List<ObservationRegistryCustomizer<?>> customizers = new ArrayList<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -407,7 +407,7 @@ class BraveAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
Tracing customTracing() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -123,7 +123,7 @@ class MicrometerTracingAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class TracerConfiguration {
|
||||
private static final class TracerConfiguration {
|
||||
|
||||
@Bean
|
||||
Tracer tracer() {
|
||||
|
@ -133,7 +133,7 @@ class MicrometerTracingAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class PropagatorConfiguration {
|
||||
private static final class PropagatorConfiguration {
|
||||
|
||||
@Bean
|
||||
Propagator propagator() {
|
||||
|
@ -143,7 +143,7 @@ class MicrometerTracingAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
DefaultTracingObservationHandler customDefaultTracingObservationHandler() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -268,7 +268,7 @@ class OpenTelemetryAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
io.micrometer.tracing.Tracer customMicrometerTracer() {
|
||||
|
@ -343,7 +343,7 @@ class OpenTelemetryAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class SdkTracerProviderCustomizationConfiguration {
|
||||
private static final class SdkTracerProviderCustomizationConfiguration {
|
||||
|
||||
@Bean
|
||||
@Order(1)
|
||||
|
@ -366,7 +366,7 @@ class OpenTelemetryAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class InMemoryRecordingSpanExporterConfiguration {
|
||||
private static final class InMemoryRecordingSpanExporterConfiguration {
|
||||
|
||||
@Bean
|
||||
InMemoryRecordingSpanExporter spanExporter() {
|
||||
|
@ -375,7 +375,7 @@ class OpenTelemetryAutoConfigurationTests {
|
|||
|
||||
}
|
||||
|
||||
private static class InMemoryRecordingSpanExporter implements SpanExporter {
|
||||
private static final class InMemoryRecordingSpanExporter implements SpanExporter {
|
||||
|
||||
private final List<SpanData> exportedSpans = new ArrayList<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -90,7 +90,7 @@ class OtlpAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomHttpExporterConfiguration {
|
||||
private static final class CustomHttpExporterConfiguration {
|
||||
|
||||
@Bean
|
||||
OtlpHttpSpanExporter customOtlpHttpSpanExporter() {
|
||||
|
@ -100,7 +100,7 @@ class OtlpAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomGrpcExporterConfiguration {
|
||||
private static final class CustomGrpcExporterConfiguration {
|
||||
|
||||
@Bean
|
||||
OtlpGrpcSpanExporter customOtlpGrpcSpanExporter() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -93,7 +93,7 @@ class PrometheusExemplarsAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
static final SpanContextSupplier SUPPLIER = mock(SpanContextSupplier.class);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -173,7 +173,7 @@ class WavefrontTracingAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
ApplicationTags customApplicationTags() {
|
||||
|
@ -203,7 +203,7 @@ class WavefrontTracingAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class WavefrontSenderConfiguration {
|
||||
private static final class WavefrontSenderConfiguration {
|
||||
|
||||
@Bean
|
||||
WavefrontSender wavefrontSender() {
|
||||
|
@ -213,7 +213,7 @@ class WavefrontTracingAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class MeterRegistryConfiguration {
|
||||
private static final class MeterRegistryConfiguration {
|
||||
|
||||
@Bean
|
||||
MeterRegistry meterRegistry() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -93,7 +93,7 @@ class ZipkinAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
BytesEncoder<Span> customBytesEncoder() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -80,7 +80,7 @@ class ZipkinConfigurationsBraveConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class ReporterConfiguration {
|
||||
private static final class ReporterConfiguration {
|
||||
|
||||
@Bean
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -91,7 +91,7 @@ class ZipkinConfigurationsBraveConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -102,7 +102,7 @@ class ZipkinConfigurationsBraveConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomSpanHandlerConfiguration {
|
||||
private static final class CustomSpanHandlerConfiguration {
|
||||
|
||||
@Bean
|
||||
SpanHandler customSpanHandler() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -71,7 +71,7 @@ class ZipkinConfigurationsOpenTelemetryConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class SenderConfiguration {
|
||||
private static final class SenderConfiguration {
|
||||
|
||||
@Bean
|
||||
Sender sender() {
|
||||
|
@ -81,7 +81,7 @@ class ZipkinConfigurationsOpenTelemetryConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
ZipkinSpanExporter customZipkinSpanExporter() {
|
||||
|
@ -91,7 +91,7 @@ class ZipkinConfigurationsOpenTelemetryConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class BaseConfiguration {
|
||||
private static final class BaseConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -64,7 +64,7 @@ class ZipkinConfigurationsReporterConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class SenderConfiguration {
|
||||
private static final class SenderConfiguration {
|
||||
|
||||
@Bean
|
||||
Sender sender() {
|
||||
|
@ -74,7 +74,7 @@ class ZipkinConfigurationsReporterConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -85,7 +85,7 @@ class ZipkinConfigurationsReporterConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class BaseConfiguration {
|
||||
private static final class BaseConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -173,7 +173,7 @@ class ZipkinConfigurationsSenderConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class RestTemplateConfiguration {
|
||||
private static final class RestTemplateConfiguration {
|
||||
|
||||
@Bean
|
||||
ZipkinRestTemplateBuilderCustomizer zipkinRestTemplateBuilderCustomizer() {
|
||||
|
@ -183,7 +183,7 @@ class ZipkinConfigurationsSenderConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class WebClientConfiguration {
|
||||
private static final class WebClientConfiguration {
|
||||
|
||||
@Bean
|
||||
ZipkinWebClientBuilderCustomizer webClientBuilder() {
|
||||
|
@ -193,7 +193,7 @@ class ZipkinConfigurationsSenderConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomConfiguration {
|
||||
private static final class CustomConfiguration {
|
||||
|
||||
@Bean
|
||||
Sender customSender() {
|
||||
|
@ -202,7 +202,7 @@ class ZipkinConfigurationsSenderConfigurationTests {
|
|||
|
||||
}
|
||||
|
||||
private static class DummyZipkinRestTemplateBuilderCustomizer implements ZipkinRestTemplateBuilderCustomizer {
|
||||
private static final class DummyZipkinRestTemplateBuilderCustomizer implements ZipkinRestTemplateBuilderCustomizer {
|
||||
|
||||
@Override
|
||||
public RestTemplateBuilder customize(RestTemplateBuilder restTemplateBuilder) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -402,7 +402,7 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext
|
|||
* Extension to {@link JacksonAnnotationIntrospector} to suppress CGLIB generated bean
|
||||
* properties.
|
||||
*/
|
||||
private static class ConfigurationPropertiesAnnotationIntrospector extends JacksonAnnotationIntrospector {
|
||||
private static final class ConfigurationPropertiesAnnotationIntrospector extends JacksonAnnotationIntrospector {
|
||||
|
||||
@Override
|
||||
public Object findFilterId(Annotated a) {
|
||||
|
@ -425,7 +425,7 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext
|
|||
* <li>Properties that throw an exception when retrieving their value.
|
||||
* </ul>
|
||||
*/
|
||||
private static class ConfigurationPropertiesPropertyFilter extends SimpleBeanPropertyFilter {
|
||||
private static final class ConfigurationPropertiesPropertyFilter extends SimpleBeanPropertyFilter {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(ConfigurationPropertiesPropertyFilter.class);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -81,7 +81,7 @@ class OperationMethodParameter implements OperationParameter {
|
|||
return this.name + " of type " + this.parameter.getType().getName();
|
||||
}
|
||||
|
||||
private static class Jsr305 {
|
||||
private static final class Jsr305 {
|
||||
|
||||
boolean isMandatory(Parameter parameter) {
|
||||
MergedAnnotation<Nonnull> annotation = MergedAnnotations.from(parameter).get(Nonnull.class);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -172,7 +172,7 @@ public class EndpointMBean implements DynamicMBean {
|
|||
return new AttributeList();
|
||||
}
|
||||
|
||||
private static class ReactiveHandler {
|
||||
private static final class ReactiveHandler {
|
||||
|
||||
static Object handle(Object result) {
|
||||
if (result instanceof Flux) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -182,7 +182,7 @@ class DiscoveredJmxOperation extends AbstractDiscoveredOperation implements JmxO
|
|||
/**
|
||||
* Utility to convert to JMX supported types.
|
||||
*/
|
||||
private static class JmxType {
|
||||
private static final class JmxType {
|
||||
|
||||
static Class<?> get(Class<?> source) {
|
||||
if (source.isEnum()) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -397,7 +397,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
|
|||
return body;
|
||||
}
|
||||
|
||||
private static class FluxBodyConverter implements Function<Object, Object> {
|
||||
private static final class FluxBodyConverter implements Function<Object, Object> {
|
||||
|
||||
@Override
|
||||
public Object apply(Object body) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -100,7 +100,7 @@ public class SimpleStatusAggregator implements StatusAggregator {
|
|||
/**
|
||||
* {@link Comparator} used to order {@link Status}.
|
||||
*/
|
||||
private class StatusComparator implements Comparator<Status> {
|
||||
private final class StatusComparator implements Comparator<Status> {
|
||||
|
||||
@Override
|
||||
public int compare(Status s1, Status s2) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -163,7 +163,7 @@ public class DataSourceHealthIndicator extends AbstractHealthIndicator implement
|
|||
/**
|
||||
* {@link RowMapper} that expects and returns results from a single column.
|
||||
*/
|
||||
private static class SingleColumnRowMapper implements RowMapper<Object> {
|
||||
private static final class SingleColumnRowMapper implements RowMapper<Object> {
|
||||
|
||||
@Override
|
||||
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -51,7 +51,7 @@ public class LdapHealthIndicator extends AbstractHealthIndicator {
|
|||
builder.up().withDetail("version", version);
|
||||
}
|
||||
|
||||
private static class VersionContextExecutor implements ContextExecutor<String> {
|
||||
private static final class VersionContextExecutor implements ContextExecutor<String> {
|
||||
|
||||
@Override
|
||||
public String executeWithContext(DirContext ctx) throws NamingException {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -96,7 +96,7 @@ public class CacheMetricsRegistrar {
|
|||
return cache;
|
||||
}
|
||||
|
||||
private static class TransactionAwareCacheDecoratorHandler {
|
||||
private static final class TransactionAwareCacheDecoratorHandler {
|
||||
|
||||
private static Cache unwrapIfNecessary(Cache cache) {
|
||||
try {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -88,7 +88,7 @@ public final class Neo4jReactiveHealthIndicator extends AbstractReactiveHealthIn
|
|||
* Builder used to create a {@link Neo4jHealthDetails} from a {@link Record} and a
|
||||
* {@link ResultSummary}.
|
||||
*/
|
||||
private static class Neo4jHealthDetailsBuilder {
|
||||
private static final class Neo4jHealthDetailsBuilder {
|
||||
|
||||
private Record record;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -93,7 +93,7 @@ public class AuthenticationAuditListener extends AbstractAuthenticationAuditList
|
|||
publish(new AuditEvent(event.getAuthentication().getName(), AUTHENTICATION_SUCCESS, data));
|
||||
}
|
||||
|
||||
private static class WebAuditListener {
|
||||
private static final class WebAuditListener {
|
||||
|
||||
void process(AuthenticationAuditListener listener, AbstractAuthenticationEvent input) {
|
||||
if (listener != null) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -95,7 +95,7 @@ class OperationReflectiveProcessorTests {
|
|||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class Methods {
|
||||
private static final class Methods {
|
||||
|
||||
private String string() {
|
||||
return null;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -261,7 +261,7 @@ class CachingOperationInvokerTests {
|
|||
then(target).should(times(1)).invoke(contextManagement);
|
||||
}
|
||||
|
||||
private static class MonoOperationInvoker implements OperationInvoker {
|
||||
private static final class MonoOperationInvoker implements OperationInvoker {
|
||||
|
||||
static AtomicInteger invocations = new AtomicInteger();
|
||||
|
||||
|
@ -275,7 +275,7 @@ class CachingOperationInvokerTests {
|
|||
|
||||
}
|
||||
|
||||
private static class FluxOperationInvoker implements OperationInvoker {
|
||||
private static final class FluxOperationInvoker implements OperationInvoker {
|
||||
|
||||
static AtomicInteger invocations = new AtomicInteger();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -390,7 +390,7 @@ public class AutoConfigurationImportSelector implements DeferredImportSelector,
|
|||
|
||||
}
|
||||
|
||||
private static class AutoConfigurationGroup
|
||||
private static final class AutoConfigurationGroup
|
||||
implements DeferredImportSelector.Group, BeanClassLoaderAware, BeanFactoryAware, ResourceLoaderAware {
|
||||
|
||||
private final Map<String, AnnotationMetadata> entries = new LinkedHashMap<>();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -134,7 +134,7 @@ public class BackgroundPreinitializer implements ApplicationListener<SpringAppli
|
|||
/**
|
||||
* Early initializer for Spring MessageConverters.
|
||||
*/
|
||||
private static class MessageConverterInitializer implements Runnable {
|
||||
private static final class MessageConverterInitializer implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -146,7 +146,7 @@ public class BackgroundPreinitializer implements ApplicationListener<SpringAppli
|
|||
/**
|
||||
* Early initializer for jakarta.validation.
|
||||
*/
|
||||
private static class ValidationInitializer implements Runnable {
|
||||
private static final class ValidationInitializer implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -159,7 +159,7 @@ public class BackgroundPreinitializer implements ApplicationListener<SpringAppli
|
|||
/**
|
||||
* Early initializer for Jackson.
|
||||
*/
|
||||
private static class JacksonInitializer implements Runnable {
|
||||
private static final class JacksonInitializer implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -171,7 +171,7 @@ public class BackgroundPreinitializer implements ApplicationListener<SpringAppli
|
|||
/**
|
||||
* Early initializer for Spring's ConversionService.
|
||||
*/
|
||||
private static class ConversionServiceInitializer implements Runnable {
|
||||
private static final class ConversionServiceInitializer implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -180,7 +180,7 @@ public class BackgroundPreinitializer implements ApplicationListener<SpringAppli
|
|||
|
||||
}
|
||||
|
||||
private static class CharsetInitializer implements Runnable {
|
||||
private static final class CharsetInitializer implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -277,7 +277,7 @@ public class CassandraAutoConfiguration {
|
|||
return connectionDetails.getContactPoints().stream().map((node) -> node.host() + ":" + node.port()).toList();
|
||||
}
|
||||
|
||||
private static class CassandraDriverOptions {
|
||||
private static final class CassandraDriverOptions {
|
||||
|
||||
private final Map<String, String> options = new LinkedHashMap<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -294,7 +294,7 @@ public final class ConditionEvaluationReport {
|
|||
|
||||
}
|
||||
|
||||
private static class AncestorsMatchedCondition implements Condition {
|
||||
private static final class AncestorsMatchedCondition implements Condition {
|
||||
|
||||
@Override
|
||||
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class CassandraReactiveRepositoriesRegistrar extends AbstractRepositoryConfigura
|
|||
}
|
||||
|
||||
@EnableReactiveCassandraRepositories
|
||||
private static class EnableReactiveCassandraRepositoriesConfiguration {
|
||||
private static final class EnableReactiveCassandraRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class CassandraRepositoriesRegistrar extends AbstractRepositoryConfigurationSour
|
|||
}
|
||||
|
||||
@EnableCassandraRepositories
|
||||
private static class EnableCassandraRepositoriesConfiguration {
|
||||
private static final class EnableCassandraRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class CouchbaseReactiveRepositoriesRegistrar extends AbstractRepositoryConfigura
|
|||
}
|
||||
|
||||
@EnableReactiveCouchbaseRepositories
|
||||
private static class EnableReactiveCouchbaseRepositoriesConfiguration {
|
||||
private static final class EnableReactiveCouchbaseRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class CouchbaseRepositoriesRegistrar extends AbstractRepositoryConfigurationSour
|
|||
}
|
||||
|
||||
@EnableCouchbaseRepositories
|
||||
private static class EnableCouchbaseRepositoriesConfiguration {
|
||||
private static final class EnableCouchbaseRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -49,7 +49,7 @@ class ElasticsearchRepositoriesRegistrar extends AbstractRepositoryConfiguration
|
|||
}
|
||||
|
||||
@EnableElasticsearchRepositories
|
||||
private static class EnableElasticsearchRepositoriesConfiguration {
|
||||
private static final class EnableElasticsearchRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class ReactiveElasticsearchRepositoriesRegistrar extends AbstractRepositoryConfi
|
|||
}
|
||||
|
||||
@EnableReactiveElasticsearchRepositories
|
||||
private static class EnableElasticsearchRepositoriesConfiguration {
|
||||
private static final class EnableElasticsearchRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class JdbcRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSup
|
|||
}
|
||||
|
||||
@EnableJdbcRepositories
|
||||
private static class EnableJdbcRepositoriesConfiguration {
|
||||
private static final class EnableJdbcRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -34,7 +34,7 @@ class EnversRevisionRepositoriesRegistrar extends JpaRepositoriesRegistrar {
|
|||
}
|
||||
|
||||
@EnableJpaRepositories(repositoryFactoryBeanClass = EnversRevisionRepositoryFactoryBean.class)
|
||||
private static class EnableJpaRepositoriesConfiguration {
|
||||
private static final class EnableJpaRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -74,7 +74,7 @@ class JpaRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSupp
|
|||
}
|
||||
|
||||
@EnableJpaRepositories
|
||||
private static class EnableJpaRepositoriesConfiguration {
|
||||
private static final class EnableJpaRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class LdapRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSup
|
|||
}
|
||||
|
||||
@EnableLdapRepositories
|
||||
private static class EnableLdapRepositoriesConfiguration {
|
||||
private static final class EnableLdapRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class MongoReactiveRepositoriesRegistrar extends AbstractRepositoryConfiguration
|
|||
}
|
||||
|
||||
@EnableReactiveMongoRepositories
|
||||
private static class EnableReactiveMongoRepositoriesConfiguration {
|
||||
private static final class EnableReactiveMongoRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class MongoRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSu
|
|||
}
|
||||
|
||||
@EnableMongoRepositories
|
||||
private static class EnableMongoRepositoriesConfiguration {
|
||||
private static final class EnableMongoRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class Neo4jReactiveRepositoriesRegistrar extends AbstractRepositoryConfiguration
|
|||
}
|
||||
|
||||
@EnableReactiveNeo4jRepositories
|
||||
private static class EnableReactiveNeo4jRepositoriesConfiguration {
|
||||
private static final class EnableReactiveNeo4jRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class Neo4jRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSu
|
|||
}
|
||||
|
||||
@EnableNeo4jRepositories
|
||||
private static class EnableNeo4jRepositoriesConfiguration {
|
||||
private static final class EnableNeo4jRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class R2dbcRepositoriesAutoConfigureRegistrar extends AbstractRepositoryConfigur
|
|||
}
|
||||
|
||||
@EnableR2dbcRepositories
|
||||
private static class EnableR2dbcRepositoriesConfiguration {
|
||||
private static final class EnableR2dbcRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -189,7 +189,7 @@ class LettuceConnectionConfiguration extends RedisConnectionConfiguration {
|
|||
/**
|
||||
* Inner class to allow optional commons-pool2 dependency.
|
||||
*/
|
||||
private static class PoolBuilderFactory {
|
||||
private static final class PoolBuilderFactory {
|
||||
|
||||
LettuceClientConfigurationBuilder createBuilder(Pool properties) {
|
||||
return LettucePoolingClientConfiguration.builder().poolConfig(getPoolConfig(properties));
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -48,7 +48,7 @@ class RedisRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSu
|
|||
}
|
||||
|
||||
@EnableRedisRepositories
|
||||
private static class EnableRedisRepositoriesConfiguration {
|
||||
private static final class EnableRedisRepositoriesConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -94,7 +94,7 @@ public class HttpMessageConvertersAutoConfiguration {
|
|||
}
|
||||
|
||||
@ConditionalOnWebApplication(type = Type.REACTIVE)
|
||||
private static class ReactiveWebApplication {
|
||||
private static final class ReactiveWebApplication {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -59,7 +59,7 @@ class IntegrationAutoConfigurationScanRegistrar extends IntegrationComponentScan
|
|||
}
|
||||
|
||||
@IntegrationComponentScan
|
||||
private static class IntegrationComponentScanConfiguration {
|
||||
private static final class IntegrationComponentScanConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -1607,7 +1607,7 @@ public class KafkaProperties {
|
|||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static class Properties extends HashMap<String, Object> {
|
||||
private static final class Properties extends HashMap<String, Object> {
|
||||
|
||||
<V> java.util.function.Consumer<V> in(String key) {
|
||||
return (value) -> put(key, value);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -153,7 +153,7 @@ public class TemplateAvailabilityProviders {
|
|||
return null;
|
||||
}
|
||||
|
||||
private static class NoTemplateAvailabilityProvider implements TemplateAvailabilityProvider {
|
||||
private static final class NoTemplateAvailabilityProvider implements TemplateAvailabilityProvider {
|
||||
|
||||
@Override
|
||||
public boolean isTemplateAvailable(String view, Environment environment, ClassLoader classLoader,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -76,7 +76,7 @@ public class RestTemplateAutoConfiguration {
|
|||
}
|
||||
|
||||
@ConditionalOnWebApplication(type = Type.REACTIVE)
|
||||
private static class ReactiveWebApplication {
|
||||
static class ReactiveWebApplication {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -352,7 +352,7 @@ public abstract class AbstractErrorWebExceptionHandler implements ErrorWebExcept
|
|||
return response.writeTo(exchange, new ResponseContext());
|
||||
}
|
||||
|
||||
private class ResponseContext implements ServerResponse.Context {
|
||||
private final class ResponseContext implements ServerResponse.Context {
|
||||
|
||||
@Override
|
||||
public List<HttpMessageWriter<?>> messageWriters() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -127,7 +127,7 @@ public class DispatcherServletAutoConfiguration {
|
|||
}
|
||||
|
||||
@Order(Ordered.LOWEST_PRECEDENCE - 10)
|
||||
private static class DefaultDispatcherServletCondition extends SpringBootCondition {
|
||||
private static final class DefaultDispatcherServletCondition extends SpringBootCondition {
|
||||
|
||||
@Override
|
||||
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
||||
|
@ -154,7 +154,7 @@ public class DispatcherServletAutoConfiguration {
|
|||
}
|
||||
|
||||
@Order(Ordered.LOWEST_PRECEDENCE - 10)
|
||||
private static class DispatcherServletRegistrationCondition extends SpringBootCondition {
|
||||
private static final class DispatcherServletRegistrationCondition extends SpringBootCondition {
|
||||
|
||||
@Override
|
||||
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -169,7 +169,7 @@ public class ErrorMvcAutoConfiguration {
|
|||
/**
|
||||
* {@link SpringBootCondition} that matches when no error template view is detected.
|
||||
*/
|
||||
private static class ErrorTemplateMissingCondition extends SpringBootCondition {
|
||||
private static final class ErrorTemplateMissingCondition extends SpringBootCondition {
|
||||
|
||||
@Override
|
||||
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
||||
|
@ -188,7 +188,7 @@ public class ErrorMvcAutoConfiguration {
|
|||
/**
|
||||
* Simple {@link View} implementation that writes a default HTML error page.
|
||||
*/
|
||||
private static class StaticView implements View {
|
||||
private static final class StaticView implements View {
|
||||
|
||||
private static final MediaType TEXT_HTML_UTF8 = new MediaType("text", "html", StandardCharsets.UTF_8);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -44,7 +44,7 @@ public class UndertowWebSocketServletWebServerCustomizer
|
|||
return 0;
|
||||
}
|
||||
|
||||
private static class WebsocketDeploymentInfoCustomizer implements UndertowDeploymentInfoCustomizer {
|
||||
private static final class WebsocketDeploymentInfoCustomizer implements UndertowDeploymentInfoCustomizer {
|
||||
|
||||
@Override
|
||||
public void customize(DeploymentInfo deploymentInfo) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -216,7 +216,7 @@ class AutoConfigurationImportSelectorTests {
|
|||
return ImportCandidates.load(AutoConfiguration.class, getClass().getClassLoader()).getCandidates();
|
||||
}
|
||||
|
||||
private class TestAutoConfigurationImportSelector extends AutoConfigurationImportSelector {
|
||||
private final class TestAutoConfigurationImportSelector extends AutoConfigurationImportSelector {
|
||||
|
||||
private AutoConfigurationImportEvent lastEvent;
|
||||
|
||||
|
@ -269,54 +269,54 @@ class AutoConfigurationImportSelectorTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private class TestConfiguration {
|
||||
private final class TestConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration
|
||||
private class BasicEnableAutoConfiguration {
|
||||
private final class BasicEnableAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration(exclude = FreeMarkerAutoConfiguration.class)
|
||||
private class EnableAutoConfigurationWithClassExclusions {
|
||||
private final class EnableAutoConfigurationWithClassExclusions {
|
||||
|
||||
}
|
||||
|
||||
@SpringBootApplication(exclude = FreeMarkerAutoConfiguration.class)
|
||||
private class SpringBootApplicationWithClassExclusions {
|
||||
private final class SpringBootApplicationWithClassExclusions {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration(excludeName = "org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration")
|
||||
private class EnableAutoConfigurationWithClassNameExclusions {
|
||||
private final class EnableAutoConfigurationWithClassNameExclusions {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration(exclude = MustacheAutoConfiguration.class,
|
||||
excludeName = "org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration")
|
||||
private class EnableAutoConfigurationWithClassAndClassNameExclusions {
|
||||
private final class EnableAutoConfigurationWithClassAndClassNameExclusions {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration(exclude = TestConfiguration.class)
|
||||
private class EnableAutoConfigurationWithFaultyClassExclude {
|
||||
private final class EnableAutoConfigurationWithFaultyClassExclude {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration(
|
||||
excludeName = "org.springframework.boot.autoconfigure.AutoConfigurationImportSelectorTests.TestConfiguration")
|
||||
private class EnableAutoConfigurationWithFaultyClassNameExclude {
|
||||
private final class EnableAutoConfigurationWithFaultyClassNameExclude {
|
||||
|
||||
}
|
||||
|
||||
@EnableAutoConfiguration(excludeName = "org.springframework.boot.autoconfigure.DoesNotExist1")
|
||||
private class EnableAutoConfigurationWithAbsentClassNameExclude {
|
||||
private final class EnableAutoConfigurationWithAbsentClassNameExclude {
|
||||
|
||||
}
|
||||
|
||||
@SpringBootApplication(excludeName = "org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration")
|
||||
private class SpringBootApplicationWithClassNameExclusions {
|
||||
private final class SpringBootApplicationWithClassNameExclusions {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -405,7 +405,7 @@ class R2dbcAutoConfigurationTests {
|
|||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
private static class CustomizerConfiguration {
|
||||
private static final class CustomizerConfiguration {
|
||||
|
||||
@Bean
|
||||
ConnectionFactoryOptionsBuilderCustomizer customizer() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -52,7 +52,7 @@ class ScheduledBeanLazyInitializationExcludeFilterTests {
|
|||
return this.filter.isExcluded("test", new RootBeanDefinition(type), type);
|
||||
}
|
||||
|
||||
private static class TestBean {
|
||||
private static final class TestBean {
|
||||
|
||||
@Scheduled
|
||||
void doStuff() {
|
||||
|
@ -60,7 +60,7 @@ class ScheduledBeanLazyInitializationExcludeFilterTests {
|
|||
|
||||
}
|
||||
|
||||
private static class AnotherTestBean {
|
||||
private static final class AnotherTestBean {
|
||||
|
||||
@Schedules({ @Scheduled(fixedRate = 5000), @Scheduled(fixedRate = 2500) })
|
||||
void doStuff() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -298,7 +298,7 @@ public class LiveReloadServer {
|
|||
/**
|
||||
* {@link ThreadFactory} to create the worker threads.
|
||||
*/
|
||||
private static class WorkerThreadFactory implements ThreadFactory {
|
||||
private static final class WorkerThreadFactory implements ThreadFactory {
|
||||
|
||||
private final AtomicInteger threadNumber = new AtomicInteger(1);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -212,7 +212,7 @@ final class ClassLoaderFilesResourcePatternResolver implements ResourcePatternRe
|
|||
* {@link ResourcePatternResolverFactory} to be used when the classloader can access
|
||||
* {@link WebApplicationContext}.
|
||||
*/
|
||||
private static class WebResourcePatternResolverFactory extends ResourcePatternResolverFactory {
|
||||
private static final class WebResourcePatternResolverFactory extends ResourcePatternResolverFactory {
|
||||
|
||||
@Override
|
||||
public ResourcePatternResolver getResourcePatternResolver(AbstractApplicationContext applicationContext,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -37,7 +37,7 @@ public class RestartScopeInitializer implements ApplicationContextInitializer<Co
|
|||
/**
|
||||
* {@link Scope} that stores beans as {@link Restarter} attributes.
|
||||
*/
|
||||
private static class RestartScope implements Scope {
|
||||
private static final class RestartScope implements Scope {
|
||||
|
||||
@Override
|
||||
public Object get(String name, ObjectFactory<?> objectFactory) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -624,7 +624,7 @@ public class Restarter {
|
|||
/**
|
||||
* {@link ThreadFactory} that creates a leak safe thread.
|
||||
*/
|
||||
private class LeakSafeThreadFactory implements ThreadFactory {
|
||||
private final class LeakSafeThreadFactory implements ThreadFactory {
|
||||
|
||||
@Override
|
||||
public Thread newThread(Runnable runnable) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -92,7 +92,7 @@ class SilentExitExceptionHandler implements UncaughtExceptionHandler {
|
|||
throw new SilentExitException();
|
||||
}
|
||||
|
||||
private static class SilentExitException extends RuntimeException {
|
||||
private static final class SilentExitException extends RuntimeException {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -186,7 +186,7 @@ class DevToolsR2dbcAutoConfigurationTests {
|
|||
|
||||
}
|
||||
|
||||
private static class MockConnectionFactory implements ConnectionFactory {
|
||||
private static final class MockConnectionFactory implements ConnectionFactory {
|
||||
|
||||
@Override
|
||||
public Publisher<? extends Connection> create() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -326,7 +326,7 @@ class FileSystemWatcherTests {
|
|||
return file;
|
||||
}
|
||||
|
||||
private static class TestSnapshotStateRepository implements SnapshotStateRepository {
|
||||
private static final class TestSnapshotStateRepository implements SnapshotStateRepository {
|
||||
|
||||
private Object state;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -127,7 +127,7 @@ class RestartApplicationListenerTests {
|
|||
}
|
||||
}
|
||||
|
||||
private static class ImplicitlyEnabledRestartApplicationListener extends RestartApplicationListener {
|
||||
private static final class ImplicitlyEnabledRestartApplicationListener extends RestartApplicationListener {
|
||||
|
||||
@Override
|
||||
boolean implicitlyEnableRestart() {
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
public class MySpringBootTestsConfiguration {
|
||||
|
||||
@RestController
|
||||
private static class ExampleController {
|
||||
private static final class ExampleController {
|
||||
|
||||
@RequestMapping("/example")
|
||||
ResponseEntity<String> example() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -51,7 +51,7 @@ class OverrideAutoConfigurationContextCustomizerFactory implements ContextCustom
|
|||
/**
|
||||
* {@link ContextCustomizer} to disable full auto-configuration.
|
||||
*/
|
||||
private static class DisableAutoConfigurationContextCustomizer implements ContextCustomizer {
|
||||
private static final class DisableAutoConfigurationContextCustomizer implements ContextCustomizer {
|
||||
|
||||
@Override
|
||||
public void customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -56,7 +56,7 @@ public class RestDocsTestExecutionListener extends AbstractTestExecutionListener
|
|||
}
|
||||
}
|
||||
|
||||
private static class DocumentationHandler {
|
||||
private static final class DocumentationHandler {
|
||||
|
||||
private void beforeTestMethod(TestContext testContext) {
|
||||
ManualRestDocumentation restDocumentation = findManualRestDocumentation(testContext);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -177,7 +177,7 @@ public class SpringBootMockMvcBuilderCustomizer implements MockMvcBuilderCustomi
|
|||
writer.write(((Printer) getPrinter()).getLines());
|
||||
}
|
||||
|
||||
private static class Printer implements ResultValuePrinter {
|
||||
private static final class Printer implements ResultValuePrinter {
|
||||
|
||||
private final List<String> lines = new ArrayList<>();
|
||||
|
||||
|
@ -261,7 +261,7 @@ public class SpringBootMockMvcBuilderCustomizer implements MockMvcBuilderCustomi
|
|||
/**
|
||||
* {@link LinesWriter} to output results to the log.
|
||||
*/
|
||||
private static class LoggingLinesWriter implements LinesWriter {
|
||||
private static final class LoggingLinesWriter implements LinesWriter {
|
||||
|
||||
private static final Log logger = LogFactory.getLog("org.springframework.test.web.servlet.result");
|
||||
|
||||
|
@ -318,7 +318,7 @@ public class SpringBootMockMvcBuilderCustomizer implements MockMvcBuilderCustomi
|
|||
addAsRegistrationBean(beanFactory, Filter.class, new FilterRegistrationBeanAdapter());
|
||||
}
|
||||
|
||||
private static class FilterRegistrationBeanAdapter implements RegistrationBeanAdapter<Filter> {
|
||||
private static final class FilterRegistrationBeanAdapter implements RegistrationBeanAdapter<Filter> {
|
||||
|
||||
@Override
|
||||
public RegistrationBean createRegistrationBean(String name, Filter source, int totalNumberOfSourceBeans) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -372,7 +372,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
|
|||
/**
|
||||
* Inner class to configure {@link WebMergedContextConfiguration}.
|
||||
*/
|
||||
private static class WebConfigurer {
|
||||
private static final class WebConfigurer {
|
||||
|
||||
void configure(MergedContextConfiguration mergedConfig, SpringApplication application,
|
||||
List<ApplicationContextInitializer<?>> initializers) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -44,7 +44,7 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
|
|||
return new DuplicateJsonObjectContextCustomizer();
|
||||
}
|
||||
|
||||
private static class DuplicateJsonObjectContextCustomizer implements ContextCustomizer {
|
||||
private static final class DuplicateJsonObjectContextCustomizer implements ContextCustomizer {
|
||||
|
||||
private final Log logger = LogFactory.getLog(DuplicateJsonObjectContextCustomizer.class);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -121,7 +121,7 @@ public class MockitoTestExecutionListener extends AbstractTestExecutionListener
|
|||
/**
|
||||
* {@link FieldCallback} to collect Mockito annotations.
|
||||
*/
|
||||
private static class MockitoAnnotationCollection implements FieldCallback {
|
||||
private static final class MockitoAnnotationCollection implements FieldCallback {
|
||||
|
||||
private final Set<Annotation> annotations = new LinkedHashSet<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -1080,7 +1080,7 @@ public class TestRestTemplate {
|
|||
|
||||
}
|
||||
|
||||
private static class NoOpResponseErrorHandler extends DefaultResponseErrorHandler {
|
||||
private static final class NoOpResponseErrorHandler extends DefaultResponseErrorHandler {
|
||||
|
||||
@Override
|
||||
public void handleError(ClientHttpResponse response) throws IOException {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -446,7 +446,8 @@ class SpringBootContextLoaderTests {
|
|||
|
||||
}
|
||||
|
||||
private static class ContextLoaderApplicationContextFailureProcessor implements ApplicationContextFailureProcessor {
|
||||
private static final class ContextLoaderApplicationContextFailureProcessor
|
||||
implements ApplicationContextFailureProcessor {
|
||||
|
||||
static ApplicationContext failedContext;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -54,7 +54,7 @@ class SpringBootMockResolverTests {
|
|||
|
||||
}
|
||||
|
||||
private static class MyServiceImpl implements MyService {
|
||||
private static final class MyServiceImpl implements MyService {
|
||||
|
||||
@Override
|
||||
public int a() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -45,7 +45,7 @@ class WebTestClientContextCustomizerWithoutWebfluxIntegrationTests {
|
|||
}
|
||||
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
private static class TestClass {
|
||||
private static final class TestClass {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -101,7 +101,7 @@ final class BuildpackLayersMetadata extends MappedObject {
|
|||
return new BuildpackLayersMetadata(node);
|
||||
}
|
||||
|
||||
private static class Buildpacks {
|
||||
private static final class Buildpacks {
|
||||
|
||||
private final Map<String, BuildpackVersions> buildpacks = new HashMap<>();
|
||||
|
||||
|
@ -126,7 +126,7 @@ final class BuildpackLayersMetadata extends MappedObject {
|
|||
|
||||
}
|
||||
|
||||
private static class BuildpackVersions {
|
||||
private static final class BuildpackVersions {
|
||||
|
||||
private final Map<String, BuildpackLayerDetails> versions = new HashMap<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -272,7 +272,7 @@ class Lifecycle implements Closeable {
|
|||
/**
|
||||
* Common directories used by the various phases.
|
||||
*/
|
||||
private static class Directory {
|
||||
private static final class Directory {
|
||||
|
||||
/**
|
||||
* The directory used by buildpacks to write their layer contributions. A new
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -500,7 +500,7 @@ public class DockerApi {
|
|||
/**
|
||||
* {@link UpdateListener} used to capture the image digest.
|
||||
*/
|
||||
private static class DigestCaptureUpdateListener implements UpdateListener<ProgressUpdateEvent> {
|
||||
private static final class DigestCaptureUpdateListener implements UpdateListener<ProgressUpdateEvent> {
|
||||
|
||||
private static final String PREFIX = "Digest:";
|
||||
|
||||
|
@ -521,7 +521,7 @@ public class DockerApi {
|
|||
/**
|
||||
* {@link UpdateListener} used to ensure an image load response stream.
|
||||
*/
|
||||
private static class StreamCaptureUpdateListener implements UpdateListener<LoadImageUpdateEvent> {
|
||||
private static final class StreamCaptureUpdateListener implements UpdateListener<LoadImageUpdateEvent> {
|
||||
|
||||
private String stream;
|
||||
|
||||
|
@ -540,7 +540,7 @@ public class DockerApi {
|
|||
* {@link UpdateListener} used to capture the details of an error in a response
|
||||
* stream.
|
||||
*/
|
||||
private static class ErrorCaptureUpdateListener implements UpdateListener<PushImageUpdateEvent> {
|
||||
private static final class ErrorCaptureUpdateListener implements UpdateListener<PushImageUpdateEvent> {
|
||||
|
||||
@Override
|
||||
public void onUpdate(PushImageUpdateEvent event) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -93,7 +93,7 @@ final class LocalHttpClientTransport extends HttpClientTransport {
|
|||
/**
|
||||
* {@link DnsResolver} that ensures only the loopback address is used.
|
||||
*/
|
||||
private static class LocalDnsResolver implements DnsResolver {
|
||||
private static final class LocalDnsResolver implements DnsResolver {
|
||||
|
||||
private static final InetAddress LOOPBACK = InetAddress.getLoopbackAddress();
|
||||
|
||||
|
@ -141,7 +141,7 @@ final class LocalHttpClientTransport extends HttpClientTransport {
|
|||
/**
|
||||
* {@link SchemePortResolver} for local Docker.
|
||||
*/
|
||||
private static class LocalSchemePortResolver implements SchemePortResolver {
|
||||
private static final class LocalSchemePortResolver implements SchemePortResolver {
|
||||
|
||||
private static final int DEFAULT_DOCKER_PORT = 2376;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -157,7 +157,7 @@ public abstract class DomainSocket extends AbstractSocket {
|
|||
/**
|
||||
* {@link InputStream} returned from the {@link DomainSocket}.
|
||||
*/
|
||||
private class DomainSocketInputStream extends InputStream {
|
||||
private final class DomainSocketInputStream extends InputStream {
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
|
@ -180,7 +180,7 @@ public abstract class DomainSocket extends AbstractSocket {
|
|||
/**
|
||||
* {@link OutputStream} returned from the {@link DomainSocket}.
|
||||
*/
|
||||
private class DomainSocketOutputStream extends OutputStream {
|
||||
private final class DomainSocketOutputStream extends OutputStream {
|
||||
|
||||
@Override
|
||||
public void write(int b) throws IOException {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -159,7 +159,7 @@ public class NamedPipeSocket extends Socket {
|
|||
return this.fileChannel.isOpen();
|
||||
}
|
||||
|
||||
private static class CompletableFutureHandler extends CompletableFuture<Integer>
|
||||
private static final class CompletableFutureHandler extends CompletableFuture<Integer>
|
||||
implements CompletionHandler<Integer, Object> {
|
||||
|
||||
@Override
|
||||
|
@ -183,7 +183,7 @@ public class NamedPipeSocket extends Socket {
|
|||
/**
|
||||
* Waits for the name pipe file using a simple sleep.
|
||||
*/
|
||||
private static class SleepAwaiter implements Consumer<String> {
|
||||
private static final class SleepAwaiter implements Consumer<String> {
|
||||
|
||||
@Override
|
||||
public void accept(String path) {
|
||||
|
@ -200,7 +200,7 @@ public class NamedPipeSocket extends Socket {
|
|||
/**
|
||||
* Waits for the name pipe file using Windows specific logic.
|
||||
*/
|
||||
private static class WindowsAwaiter implements Consumer<String> {
|
||||
private static final class WindowsAwaiter implements Consumer<String> {
|
||||
|
||||
@Override
|
||||
public void accept(String path) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -145,7 +145,7 @@ public class OptionHandler {
|
|||
return this.optionHelp;
|
||||
}
|
||||
|
||||
private static class OptionHelpFormatter implements HelpFormatter {
|
||||
private static final class OptionHelpFormatter implements HelpFormatter {
|
||||
|
||||
private final List<OptionHelp> help = new ArrayList<>();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -101,7 +101,7 @@ class ConstructorParameterPropertyDescriptor extends PropertyDescriptor<Variable
|
|||
return (coercedValue != null) ? coercedValue : value;
|
||||
}
|
||||
|
||||
private static class DefaultValueCoercionTypeVisitor extends TypeKindVisitor8<Object, String> {
|
||||
private static final class DefaultValueCoercionTypeVisitor extends TypeKindVisitor8<Object, String> {
|
||||
|
||||
private static final DefaultValueCoercionTypeVisitor INSTANCE = new DefaultValueCoercionTypeVisitor();
|
||||
|
||||
|
@ -161,7 +161,7 @@ class ConstructorParameterPropertyDescriptor extends PropertyDescriptor<Variable
|
|||
|
||||
}
|
||||
|
||||
private static class DefaultPrimitiveTypeVisitor extends TypeKindVisitor8<Object, Void> {
|
||||
private static final class DefaultPrimitiveTypeVisitor extends TypeKindVisitor8<Object, Void> {
|
||||
|
||||
private static final DefaultPrimitiveTypeVisitor INSTANCE = new DefaultPrimitiveTypeVisitor();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -57,7 +57,7 @@ public class JavaCompilerFieldValuesParser implements FieldValuesParser {
|
|||
/**
|
||||
* {@link TreeVisitor} to collect fields.
|
||||
*/
|
||||
private static class FieldCollector implements TreeVisitor {
|
||||
private static final class FieldCollector implements TreeVisitor {
|
||||
|
||||
private static final Map<String, Class<?>> WRAPPER_TYPES;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -160,7 +160,7 @@ class JsonConverter {
|
|||
return defaultValue;
|
||||
}
|
||||
|
||||
private static class ItemMetadataComparator implements Comparator<ItemMetadata> {
|
||||
private static final class ItemMetadataComparator implements Comparator<ItemMetadata> {
|
||||
|
||||
private static final Comparator<ItemMetadata> GROUP = Comparator.comparing(ItemMetadata::getName)
|
||||
.thenComparing(ItemMetadata::getSourceType, Comparator.nullsFirst(Comparator.naturalOrder()));
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -109,7 +109,7 @@ public abstract class AbstractFieldValuesProcessorTests {
|
|||
|
||||
@SupportedAnnotationTypes({ "org.springframework.boot.configurationsample.ConfigurationProperties" })
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_6)
|
||||
private class TestProcessor extends AbstractProcessor {
|
||||
private final class TestProcessor extends AbstractProcessor {
|
||||
|
||||
private FieldValuesParser processor;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -217,7 +217,7 @@ class ExtractCommandTests {
|
|||
return FileCopyUtils.copyToString(reader);
|
||||
}
|
||||
|
||||
private static class TestLayers implements Layers {
|
||||
private static final class TestLayers implements Layers {
|
||||
|
||||
@Override
|
||||
public Iterator<String> iterator() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -38,7 +38,7 @@ public abstract class LogbackInitializer {
|
|||
}
|
||||
}
|
||||
|
||||
private static class Initializer {
|
||||
private static final class Initializer {
|
||||
|
||||
void setRootLogLevel() {
|
||||
ILoggerFactory factory = LoggerFactory.getILoggerFactory();
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user