3435363738394041424344
for (Vote v : getVotes()) { if (v.getAccount().getId().equals(voteAccount.getId())) { return; } } Vote v = new Vote(); v.setAccount(voteAccount); v.setPlus(plus); votes.add(v); calculateRating(); }