Skip to content

Commit

Permalink
Fixup: Remove unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
skykanin committed Feb 26, 2024
1 parent 0f6c66b commit 132c65e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

@Singleton
@Bean
public class PseudoSecretTypeConverter implements TypeConverter<Map<String, Object>, PseudoSecret> {
public class PseudoSecretTypeConverter implements TypeConverter<Map, PseudoSecret> {

@Override
public Optional<PseudoSecret> convert(
Map<String, Object> propertyMap,
Map propertyMap,
Class<PseudoSecret> targetType,
ConversionContext context) {
PropertyAccessor props = new PropertyAccessor(propertyMap);
Expand All @@ -41,7 +41,7 @@ else if (propertyMap.containsKey("rawcontent")) {
: Optional.of(pseudoSecret);
}

private record PropertyAccessor(Map<String, Object> propertyMap) {
private record PropertyAccessor(Map propertyMap) {
String optionalString(String key) {
return ConversionService.SHARED.convert(propertyMap.get(key), String.class).orElse(null);
}
Expand Down

0 comments on commit 132c65e

Please sign in to comment.