Skip to content

Commit

Permalink
spot
Browse files Browse the repository at this point in the history
Signed-off-by: Lazar Petrovic <lpetrovic05@gmail.com>
  • Loading branch information
lpetrovic05 committed Dec 12, 2023
1 parent 941d613 commit be09507
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ public record PlatformSchedulersConfig(
@ConfigProperty(defaultValue = "20") int signedStateFileManagerUnhandledCapacity,
@ConfigProperty(defaultValue = "SEQUENTIAL_THREAD") TaskSchedulerType stateSignerSchedulerType,
@ConfigProperty(defaultValue = "-1") int stateSignerUnhandledCapacity) {}

Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <T> T convert(@Nullable final String value, @NonNull final Class<T> targetClass)
final ConfigConverter<T> converter = (ConfigConverter<T>) converters.get(targetClass);

if (converter == null && targetClass.isEnum()) {
//FUTURE WORK: once logging is added to this module, log a warning here
// FUTURE WORK: once logging is added to this module, log a warning here
// ("No converter defined for type '" + targetClass + "'. Converting using backup enum converter.");
return (T) Enum.valueOf((Class<Enum>) targetClass, value);
}
Expand Down

0 comments on commit be09507

Please sign in to comment.