package org.xcolab.client.proposals.pojo.proposals;

import org.xcolab.client.members.MembersClient;
import org.xcolab.client.members.exceptions.MemberNotFoundException;
import org.xcolab.client.members.pojo.Member;
import org.xcolab.client.proposals.pojo.evaluation.judges.ProposalRating;

import java.util.Collections;
import java.util.List;

public class UserProposalRatings extends ProposalRatings {

    private final Member author;

    public UserProposalRatings(long authorUserId, List<ProposalRating> ratings) {
        this(MembersClient.getMemberUnchecked(authorUserId), ratings);
    }

    public UserProposalRatings(Member author, List<ProposalRating> ratings) {
        this(author, ratings, 1L);
    }

    public UserProposalRatings(Member author, List<ProposalRating> ratings, Long roundFactor) {
        super(ratings, roundFactor);
        this.author = author;
    }

    @Override
    public Member getAuthor() {
        return author;
    }
}

@@ -98,77 +98,8 @@
 nt;%0A
-import org.xcolab.client.members.exceptions.MemberNotFoundException;%0A
 impo
@@ -219,38 +219,8 @@
 g;%0A%0A
-import java.util.Collections;%0A
 impo

fix codacy issues