Skip to content
Snippets Groups Projects
Commit 7476836e authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

improve code following codacy advices

parent cdac749c
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ public class Experiment {
if (model == null || model.getQuery() == null)
return new ExperimentQuery(null, null, null, null, null, null);
List<eu.hbp.mip.messages.external.Algorithm> algorithms = new LinkedList<>();
List<Algorithm> algorithms = new LinkedList<>();
Type algoList = new TypeToken<LinkedList<eu.hbp.mip.model.Algorithm>>(){}.getType();
List<eu.hbp.mip.model.Algorithm> algos = new Gson().fromJson(this.algorithms, algoList);
for (eu.hbp.mip.model.Algorithm a: algos
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment