diff --git a/src/main/java/fr/lirmm/aren/ws/rest/VMThemeRESTFacade.java b/src/main/java/fr/lirmm/aren/ws/rest/VMThemeRESTFacade.java index 3f84c24..414e2e1 100644 --- a/src/main/java/fr/lirmm/aren/ws/rest/VMThemeRESTFacade.java +++ b/src/main/java/fr/lirmm/aren/ws/rest/VMThemeRESTFacade.java @@ -106,7 +106,7 @@ public class VMThemeRESTFacade extends AbstractRESTFacade{ choicesNotVoted.add(choice) ; } } - VMChoice newChoices[]=new VMChoice[choices.length] ; + HashSet newChoices = new HashSet<>(); if(!proposalTallyInterfaces.isEmpty()){ ProposalTallyInterface []proposalTallyInterfacesArray=new ProposalTallyInterface[proposalTallyInterfaces.size()] ; for(int i=0 ; i{ for(ProposalResultInterface item : result.getProposalResults()){ VMChoice vmChoice=(VMChoice) choices[index] ; vmChoice.setRank(item.getRank()); - newChoices[item.getRank()-1]=vmChoice ; - System.out.println(item.getRank()+" - "+newChoices[item.getRank()-1].getTitle()); + newChoices.add(vmChoice) ; index++ ; } } for(int i=0 ; i setChoices = new HashSet<>(); - System.out.println("Rang : ") ; - for(int i=0 ; i