Skip to content

Commit e795713

Browse files
KochTobisven1103
andcommitted
Make object mapper static
Co-authored-by: Sven F. <[email protected]>
1 parent 989db46 commit e795713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/life/qbic/registration/openbis/ProvenanceParser.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
public class ProvenanceParser {
1212

1313

14-
private final ObjectMapper objectMapper = new ObjectMapper();
14+
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
1515

1616
DataSetProvenance parseProvenanceJson(File provenanceFile) {
1717
try {
18-
return objectMapper.readValue(provenanceFile,
18+
return OBJECT_MAPPER.readValue(provenanceFile,
1919
DataSetProvenance.class);
2020
} catch (IOException e) {
2121
throw new ProvenanceParseException(

0 commit comments

Comments
 (0)