From 24fa81d7e824a92c03489504b0186531eba50d14 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 23 Apr 2020 11:44:19 +0200 Subject: [PATCH] implementation parametrized for result type --- .../src/main/java/eu/dnetlib/dhp/SparkBulkTagJob2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/SparkBulkTagJob2.java b/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/SparkBulkTagJob2.java index 04897dd4a..3ca22de7c 100644 --- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/SparkBulkTagJob2.java +++ b/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/SparkBulkTagJob2.java @@ -28,7 +28,7 @@ public class SparkBulkTagJob2 { String jsonConfiguration = IOUtils.toString( SparkBulkTagJob2.class.getResourceAsStream( - "/eu/dnetlib/dhp/input_bulktag_parameters.json")); + "/eu/dnetlib/dhp/bulktag/input_bulktag_parameters.json")); final ArgumentApplicationParser parser = new ArgumentApplicationParser(jsonConfiguration); @@ -74,7 +74,7 @@ public class SparkBulkTagJob2 { String taggingConf = parser.get("taggingConf"); if (isTest) { - cc = CommunityConfigurationFactory.fromJson(taggingConf); + cc = CommunityConfigurationFactory.newInstance(taggingConf); } else { cc = QueryInformationSystem.getCommunityConfiguration(parser.get("isLookupUrl")); }