Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Oct 5, 2023
1 parent 88da278 commit 28956cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
10 changes: 0 additions & 10 deletions libs/essentials/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--VALIDATION-->
<dependency>
<groupId>org.hibernate.validator</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)
Map<String, Object> attributes =
metadata.getAnnotationAttributes(ConditionalOnConfigMappingMode.class.getName());
ConfigMappingMode expectedMode = (ConfigMappingMode) attributes.get("value");
String actualMode = context.getEnvironment().getProperty("bezmen.config.mapping.mode", ConfigMappingMode.LIGHTBEND_CONFIG.name());
String actualMode = context.getEnvironment()
.getProperty("bezmen.config.mapping.mode", ConfigMappingMode.LIGHTBEND_CONFIG.name());
return expectedMode.name().equalsIgnoreCase(actualMode);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)
Map<String, Object> attributes =
metadata.getAnnotationAttributes(ConditionalOnConfigProtocolMode.class.getName());
ConfigProtocolMode expectedMode = (ConfigProtocolMode) attributes.get("value");
String actualMode = context.getEnvironment().getProperty("bezmen.config.protocol.mode", ConfigProtocolMode.FILE_SYSTEM.name());
String actualMode = context.getEnvironment()
.getProperty("bezmen.config.protocol.mode", ConfigProtocolMode.FILE_SYSTEM.name());
return expectedMode.name().equalsIgnoreCase(actualMode);
}

Expand Down
6 changes: 0 additions & 6 deletions libs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@
<version>6.0.0</version>
</dependency>

<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.7.3</version>
</dependency>

<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package smecalculus.bezmen.configuration;

import edu.umd.cs.findbugs.annotations.Nullable;
import lombok.Builder;
import lombok.NonNull;
import org.springframework.lang.Nullable;

@Builder
public record StorageProtocolProps(
Expand Down

0 comments on commit 28956cd

Please sign in to comment.