mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Remove unnecessary static
modifiers
See gh-38739
This commit is contained in:
parent
ac18e3015c
commit
d3a51e56b7
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
@ -162,7 +162,7 @@ class ImportTestcontainersTests {
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
static @interface ContainerAnnotation {
|
||||
@interface ContainerAnnotation {
|
||||
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class TestcontainersPropertySourceAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@ConfigurationProperties("container")
|
||||
static record ContainerProperties(int port) {
|
||||
record ContainerProperties(int port) {
|
||||
}
|
||||
|
||||
static class TestBean {
|
||||
|
@ -3019,7 +3019,7 @@ class ConfigurationPropertiesTests {
|
||||
|
||||
}
|
||||
|
||||
static record NestedRecord(String name) {
|
||||
record NestedRecord(String name) {
|
||||
}
|
||||
|
||||
@EnableConfigurationProperties
|
||||
|
@ -207,7 +207,7 @@ class DefaultBindConstructorProviderTests {
|
||||
|
||||
}
|
||||
|
||||
static record OneConstructorOnRecord(String name, int age) {
|
||||
record OneConstructorOnRecord(String name, int age) {
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user