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 12
12
import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
13
13
14
14
public class StringUtils {
15
+
15
16
private static final String CONCAT_DELIMITER = "; " ;
16
17
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
+
17
26
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 ;
22
28
}
23
29
24
30
/**
You can’t perform that action at this time.
0 commit comments