diff --git a/apps/foo/src/main/java/smecalculus/bezmen/construction/App.java b/apps/foo/src/main/java/smecalculus/bezmen/construction/App.java index ffdec02e..9fdb9775 100644 --- a/apps/foo/src/main/java/smecalculus/bezmen/construction/App.java +++ b/apps/foo/src/main/java/smecalculus/bezmen/construction/App.java @@ -38,14 +38,14 @@ @Configuration(proxyBeanMethods = false) @Import({ConfigBeans.class, ValidationBeans.class, MessagingBeans.class, StorageBeans.class}) @ImportAutoConfiguration({ - JacksonAutoConfiguration.class, - EndpointAutoConfiguration.class, - WebEndpointAutoConfiguration.class, - HealthEndpointAutoConfiguration.class, - ManagementContextAutoConfiguration.class, - ServletManagementContextAutoConfiguration.class, - ObservationAutoConfiguration.class, - WebMvcObservationAutoConfiguration.class + JacksonAutoConfiguration.class, + EndpointAutoConfiguration.class, + WebEndpointAutoConfiguration.class, + HealthEndpointAutoConfiguration.class, + ManagementContextAutoConfiguration.class, + ServletManagementContextAutoConfiguration.class, + ObservationAutoConfiguration.class, + WebMvcObservationAutoConfiguration.class }) public class App { diff --git a/apps/foo/src/test/java/smecalculus/bezmen/construction/SepulkaDaoBeans.java b/apps/foo/src/test/java/smecalculus/bezmen/construction/SepulkaDaoBeans.java index f570b2da..23dfbee7 100644 --- a/apps/foo/src/test/java/smecalculus/bezmen/construction/SepulkaDaoBeans.java +++ b/apps/foo/src/test/java/smecalculus/bezmen/construction/SepulkaDaoBeans.java @@ -64,8 +64,11 @@ public SepulkaDao underTest(SepulkaRecMapper recMapper, SepulkaRepository reposi @Bean public StorageProps storageProps() { return StorageProps.builder() - .mappingProps(StateMappingProps.builder().mappingMode(SPRING_DATA).build()) - .protocolProps(StorageProtocolProps.builder().protocolMode(POSTGRES).build()) + .mappingProps( + StateMappingProps.builder().mappingMode(SPRING_DATA).build()) + .protocolProps(StorageProtocolProps.builder() + .protocolMode(POSTGRES) + .build()) .build(); } } @@ -81,8 +84,11 @@ public SepulkaDao underTest(SepulkaRecMapper recMapper, SepulkaSqlMapper sqlMapp @Bean public StorageProps storageProps() { return StorageProps.builder() - .mappingProps(StateMappingProps.builder().mappingMode(MY_BATIS).build()) - .protocolProps(StorageProtocolProps.builder().protocolMode(POSTGRES).build()) + .mappingProps( + StateMappingProps.builder().mappingMode(MY_BATIS).build()) + .protocolProps(StorageProtocolProps.builder() + .protocolMode(POSTGRES) + .build()) .build(); } } diff --git a/libs/messaging/src/main/java/smecalculus/bezmen/configuration/MessagingPropsEg.java b/libs/messaging/src/main/java/smecalculus/bezmen/configuration/MessagingPropsEg.java index 5b2c7c79..604f41c5 100644 --- a/libs/messaging/src/main/java/smecalculus/bezmen/configuration/MessagingPropsEg.java +++ b/libs/messaging/src/main/java/smecalculus/bezmen/configuration/MessagingPropsEg.java @@ -5,7 +5,8 @@ public class MessagingPropsEg { public static class Builders { public static MessagingProps.Builder messagingProps() { - return MessagingProps.builder().protocolProps(messagingProtocolProps().build()); + return MessagingProps.builder() + .protocolProps(messagingProtocolProps().build()); } } } diff --git a/libs/messaging/src/main/java/smecalculus/bezmen/construction/MessageMappingModeCondition.java b/libs/messaging/src/main/java/smecalculus/bezmen/construction/MessageMappingModeCondition.java index a27e3ccb..bee57697 100644 --- a/libs/messaging/src/main/java/smecalculus/bezmen/construction/MessageMappingModeCondition.java +++ b/libs/messaging/src/main/java/smecalculus/bezmen/construction/MessageMappingModeCondition.java @@ -16,7 +16,8 @@ class MessageMappingModeCondition implements ConfigurationCondition { @Override public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { - Map attributes = metadata.getAnnotationAttributes(ConditionalOnMessageMappingMode.class.getName()); + Map attributes = + metadata.getAnnotationAttributes(ConditionalOnMessageMappingMode.class.getName()); MessageMappingMode mode = (MessageMappingMode) attributes.get("value"); MessagingProps messagingProps = context.getBeanFactory().getBean(MessagingProps.class); if (!messagingProps.protocolProps().protocolModes().contains(HTTP)) { diff --git a/libs/messaging/src/main/java/smecalculus/bezmen/construction/ProtocolHttpBeans.java b/libs/messaging/src/main/java/smecalculus/bezmen/construction/ProtocolHttpBeans.java index 2f9307c0..8e9708ca 100644 --- a/libs/messaging/src/main/java/smecalculus/bezmen/construction/ProtocolHttpBeans.java +++ b/libs/messaging/src/main/java/smecalculus/bezmen/construction/ProtocolHttpBeans.java @@ -6,9 +6,5 @@ import org.springframework.context.annotation.Configuration; @Configuration(proxyBeanMethods = false) -@ImportAutoConfiguration({ - ServletWebServerFactoryAutoConfiguration.class, - DispatcherServletAutoConfiguration.class -}) -public class ProtocolHttpBeans { -} +@ImportAutoConfiguration({ServletWebServerFactoryAutoConfiguration.class, DispatcherServletAutoConfiguration.class}) +public class ProtocolHttpBeans {} diff --git a/libs/storage/src/main/java/smecalculus/bezmen/configuration/StorageProtocolProps.java b/libs/storage/src/main/java/smecalculus/bezmen/configuration/StorageProtocolProps.java index b7e62def..c6226c6c 100644 --- a/libs/storage/src/main/java/smecalculus/bezmen/configuration/StorageProtocolProps.java +++ b/libs/storage/src/main/java/smecalculus/bezmen/configuration/StorageProtocolProps.java @@ -5,4 +5,5 @@ import lombok.NonNull; @Builder -public record StorageProtocolProps(@NonNull StorageProtocolMode protocolMode, @Nullable H2Props h2Props, @Nullable PostgresProps postgresProps) {} +public record StorageProtocolProps( + @NonNull StorageProtocolMode protocolMode, @Nullable H2Props h2Props, @Nullable PostgresProps postgresProps) {} diff --git a/libs/storage/src/main/java/smecalculus/bezmen/construction/StateMappingModeCondition.java b/libs/storage/src/main/java/smecalculus/bezmen/construction/StateMappingModeCondition.java index f2fb47f9..ff5dd6ba 100644 --- a/libs/storage/src/main/java/smecalculus/bezmen/construction/StateMappingModeCondition.java +++ b/libs/storage/src/main/java/smecalculus/bezmen/construction/StateMappingModeCondition.java @@ -13,7 +13,8 @@ class StateMappingModeCondition implements ConfigurationCondition { @Override public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { - Map attributes = metadata.getAnnotationAttributes(ConditionalOnStateMappingMode.class.getName()); + Map attributes = + metadata.getAnnotationAttributes(ConditionalOnStateMappingMode.class.getName()); StateMappingMode mode = (StateMappingMode) attributes.get("value"); StorageProps props = context.getBeanFactory().getBean(StorageProps.class); return mode == props.mappingProps().mappingMode();