REmove duplicated code and ensure that load and initialization is done through "DedupConfig.load" method

This commit is contained in:
Giambattista Bloisi 2023-06-19 13:00:02 +02:00
parent 118e72d7db
commit 485f9d18cb
1 changed files with 1 additions and 3 deletions

View File

@ -88,9 +88,7 @@ abstract class AbstractSparkAction implements Serializable {
"for $x in /RESOURCE_PROFILE[.//RESOURCE_IDENTIFIER/@value = '%s'] return $x//DEDUPLICATION/text()", "for $x in /RESOURCE_PROFILE[.//RESOURCE_IDENTIFIER/@value = '%s'] return $x//DEDUPLICATION/text()",
configProfileId)); configProfileId));
DedupConfig dedupConfig = new ObjectMapper().readValue(conf, DedupConfig.class); DedupConfig dedupConfig = DedupConfig.load(conf);
dedupConfig.getPace().initModel();
dedupConfig.getPace().initTranslationMap();
dedupConfig.getWf().setConfigurationId(actionSetId); dedupConfig.getWf().setConfigurationId(actionSetId);
return dedupConfig; return dedupConfig;