File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
independent-projects/tools/analytics-common/src/main/java/io/quarkus/analytics/util Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1212import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
1313
1414public class StringUtils {
15+
1516 private static final String CONCAT_DELIMITER = "; " ;
1617
18+ private static final ObjectMapper OBJECT_MAPPER ;
19+
20+ static {
21+ OBJECT_MAPPER = (new ObjectMapper ()).findAndRegisterModules ();
22+ OBJECT_MAPPER .registerModule (new JavaTimeModule ());
23+ OBJECT_MAPPER .setPropertyNamingStrategy (PropertyNamingStrategies .LOWER_CAMEL_CASE );
24+ }
25+
1726 public static ObjectMapper getObjectMapper () {
18- final ObjectMapper mapper = (new ObjectMapper ()).findAndRegisterModules ();
19- mapper .registerModule (new JavaTimeModule ());
20- mapper .setPropertyNamingStrategy (PropertyNamingStrategies .LOWER_CAMEL_CASE );
21- return mapper ;
27+ return OBJECT_MAPPER ;
2228 }
2329
2430 /**
You can’t perform that action at this time.
0 commit comments