Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisLainez committed Apr 26, 2024
1 parent fb45adf commit a638543
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@
*/
package com.netflix.conductor.common.config;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.netflix.conductor.common.jackson.JsonProtoModule;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import jakarta.ws.rs.core.MultivaluedHashMap;
import jakarta.ws.rs.core.MultivaluedMap;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

/**
* A Factory class for creating a customized {@link ObjectMapper}. This is only used by the
Expand Down Expand Up @@ -54,8 +52,7 @@ public ObjectMapper getObjectMapper() {
objectMapper.registerModule(new JsonProtoModule());
objectMapper.registerModule(new AfterburnerModule());
SimpleModule module = new SimpleModule();
module.addAbstractTypeMapping(MultivaluedMap.class,
MultivaluedHashMap.class);
module.addAbstractTypeMapping(MultivaluedMap.class, MultivaluedHashMap.class);
objectMapper.registerModule(module);
return objectMapper;
}
Expand Down

0 comments on commit a638543

Please sign in to comment.