Skip to content

Commit 6aa7183

Browse files
KochTobisven1103
andcommitted
remove object mapper field
prevents keeping the object mapper alive even if it is not needed. Co-authored-by: Sven F. <[email protected]>
1 parent 2d856b4 commit 6aa7183

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

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

1313

14-
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
1514
private static final Class<DataSetProvenance> DATA_SET_PROVENANCE_CLASS = DataSetProvenance.class;
1615

1716
static DataSetProvenance parseProvenanceJson(File provenanceFile) {
1817
try {
19-
return OBJECT_MAPPER.readValue(provenanceFile,
18+
return new ObjectMapper().readValue(provenanceFile,
2019
DATA_SET_PROVENANCE_CLASS);
2120
} catch (IOException e) {
2221
throw new ProvenanceParseException(

0 commit comments

Comments
 (0)