diff --git a/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/rest/RestPoolManager.java b/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/rest/RestPoolManager.java index c445ad5..6c8cdc8 100644 --- a/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/rest/RestPoolManager.java +++ b/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/rest/RestPoolManager.java @@ -229,24 +229,24 @@ public class RestPoolManager implements PoolManager { if (algo.getCategory() == null){ algo.setCategory(category); - ***REMOVED*** else category = algo.getCategory(); + ***REMOVED*** else algo.setCategory(algo.getCategory()); if (algo.getAlgorithmType() == null){ algo.setAlgorithmType(algorithmType); - ***REMOVED*** else algorithmType = algo.getCategory(); + ***REMOVED*** else algo.setAlgorithmType(algo.getCategory()); if (algo.getSkipJava() == null){ algo.setSkipJava(skipJava); - ***REMOVED*** else skipJava = algo.getSkipJava(); + ***REMOVED*** else algo.setSkipJava(algo.getSkipJava()); if (algo.getName() == null){ - algo.setName(name+uuid); - ***REMOVED*** else name = algo.getName()+"@"+uuid; + algo.setName(name+"@"+uuid); + ***REMOVED*** else algo.setName(algo.getName()+"@"+uuid); if (algo.getDescription() == null){ algo.setDescription(description);; - ***REMOVED*** else description = algo.getDescription(); - + ***REMOVED*** else algo.setDescription(algo.getDescription()); + return algo; ***REMOVED***