Remove unnecessary static modifiers

See gh-38739
This commit is contained in:
Yanming Zhou 2023-12-19 22:26:06 -08:00 committed by Phillip Webb
parent ac18e3015c
commit d3a51e56b7
6 changed files with 6 additions and 7 deletions

View File

@ -154,7 +154,7 @@ public class AutoConfigurationPlugin implements Plugin<Project> {
});
}
private static record AutoConfigurationImports(Path importsFile, List<String> imports) {
private record AutoConfigurationImports(Path importsFile, List<String> imports) {
}

View File

@ -91,8 +91,7 @@ class ServiceConnectionContextCustomizer implements ContextCustomizer {
* Relevant details from {@link ContainerConnectionSource} used as a
* MergedContextConfiguration cache key.
*/
private static record CacheKey(String connectionName, Set<Class<?>> connectionDetailsTypes,
Container<?> container) {
private record CacheKey(String connectionName, Set<Class<?>> connectionDetailsTypes, Container<?> container) {
CacheKey(ContainerConnectionSource<?> source) {
this(source.getConnectionName(), source.getConnectionDetailsTypes(), source.getContainerSupplier().get());

View File

@ -162,7 +162,7 @@ class ImportTestcontainersTests {
}
@Retention(RetentionPolicy.RUNTIME)
static @interface ContainerAnnotation {
@interface ContainerAnnotation {
}

View File

@ -68,7 +68,7 @@ class TestcontainersPropertySourceAutoConfigurationTests {
}
@ConfigurationProperties("container")
static record ContainerProperties(int port) {
record ContainerProperties(int port) {
}
static class TestBean {

View File

@ -3019,7 +3019,7 @@ class ConfigurationPropertiesTests {
}
static record NestedRecord(String name) {
record NestedRecord(String name) {
}
@EnableConfigurationProperties

View File

@ -207,7 +207,7 @@ class DefaultBindConstructorProviderTests {
}
static record OneConstructorOnRecord(String name, int age) {
record OneConstructorOnRecord(String name, int age) {
}