File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/main/java/com/google/errorprone/hubspot Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 136
136
<artifactId >caffeine</artifactId >
137
137
<version >${caffeine.version} </version >
138
138
</dependency >
139
+
139
140
<!-- Hubspot deps -->
140
141
<dependency >
141
142
<groupId >com.fasterxml.jackson.core</groupId >
142
143
<artifactId >jackson-databind</artifactId >
143
144
<version >2.12.5</version >
144
145
</dependency >
146
+ <dependency >
147
+ <groupId >com.fasterxml.jackson.datatype</groupId >
148
+ <artifactId >jackson-datatype-guava</artifactId >
149
+ <version >2.12.5</version >
150
+ </dependency >
151
+ <dependency >
152
+ <groupId >com.fasterxml.jackson.datatype</groupId >
153
+ <artifactId >jackson-datatype-jdk8</artifactId >
154
+ <version >2.12.5</version >
155
+ </dependency >
156
+
145
157
<dependency >
146
158
<!-- Apache 2.0 -->
147
159
<groupId >com.google.jimfs</groupId >
Original file line number Diff line number Diff line change 24
24
import java .util .Optional ;
25
25
26
26
import com .fasterxml .jackson .databind .ObjectMapper ;
27
+ import com .fasterxml .jackson .datatype .guava .GuavaModule ;
28
+ import com .fasterxml .jackson .datatype .jdk8 .Jdk8Module ;
27
29
import com .google .common .base .Strings ;
28
30
import com .sun .tools .javac .util .Context ;
29
31
30
32
class FileManager {
31
- private static final ObjectMapper MAPPER = new ObjectMapper ();
33
+ private static final ObjectMapper MAPPER = new ObjectMapper (). registerModules ( new GuavaModule (), new Jdk8Module ()) ;
32
34
private static final String OVERWATCH_DIR_ENV_VAR = "MAVEN_PROJECTBASEDIR" ;
33
35
private static final String BLAZAR_DIR_ENV_VAR = "VIEWABLE_BUILD_ARTIFACTS_DIR" ;
34
36
You can’t perform that action at this time.
0 commit comments