Remove duplicated code and ensure that load and initialization is done through "DedupConfig.load" method
This commit is contained in:
parent
758e662ab8
commit
5b6c361fe0
|
@ -88,9 +88,7 @@ abstract class AbstractSparkAction implements Serializable {
|
|||
"for $x in /RESOURCE_PROFILE[.//RESOURCE_IDENTIFIER/@value = '%s'] return $x//DEDUPLICATION/text()",
|
||||
configProfileId));
|
||||
|
||||
DedupConfig dedupConfig = new ObjectMapper().readValue(conf, DedupConfig.class);
|
||||
dedupConfig.getPace().initModel();
|
||||
dedupConfig.getPace().initTranslationMap();
|
||||
DedupConfig dedupConfig = DedupConfig.load(conf);
|
||||
dedupConfig.getWf().setConfigurationId(actionSetId);
|
||||
|
||||
return dedupConfig;
|
||||
|
|
Loading…
Reference in New Issue