File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
api/src/main/java/net/transferproxy/api/util Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2525package net .transferproxy .api .util ;
2626
2727import org .jetbrains .annotations .NotNull ;
28+ import tools .jackson .databind .MapperFeature ;
2829import tools .jackson .databind .ObjectMapper ;
2930import tools .jackson .databind .PropertyNamingStrategies ;
3031import tools .jackson .dataformat .yaml .YAMLMapper ;
3839
3940public final class ResourceUtil {
4041
41- private static final ObjectMapper DEFAULT_MAPPER =
42- YAMLMapper .builder ().propertyNamingStrategy (PropertyNamingStrategies .KEBAB_CASE ).build ();
42+ private static final ObjectMapper DEFAULT_MAPPER = YAMLMapper .builder ()
43+ .configure (MapperFeature .ALLOW_FINAL_FIELDS_AS_MUTATORS , true )
44+ .propertyNamingStrategy (PropertyNamingStrategies .KEBAB_CASE )
45+ .build ();
4346
4447 private ResourceUtil () throws IllegalAccessException {
4548 throw new IllegalAccessException ("You cannot instantiate a utility class" );
You can’t perform that action at this time.
0 commit comments