Removed useless imports and properties
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
package de.twomartens.wahlrecht.mapper.v1;
|
package de.twomartens.wahlrecht.mapper.v1;
|
||||||
|
|
||||||
import de.twomartens.wahlrecht.model.internal.SeatResult;
|
import de.twomartens.wahlrecht.model.internal.SeatResult;
|
||||||
import java.util.Deque;
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import org.mapstruct.CollectionMappingStrategy;
|
import org.mapstruct.CollectionMappingStrategy;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.NullValueCheckStrategy;
|
import org.mapstruct.NullValueCheckStrategy;
|
||||||
|
|||||||
@@ -42,8 +42,4 @@ public class Nomination {
|
|||||||
String electionName;
|
String electionName;
|
||||||
Collection<Candidate> candidates;
|
Collection<Candidate> candidates;
|
||||||
boolean supportVotesOnNomination;
|
boolean supportVotesOnNomination;
|
||||||
|
|
||||||
public boolean supportsVotesOnNomination() {
|
|
||||||
return supportVotesOnNomination;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import org.springframework.data.annotation.CreatedDate;
|
|||||||
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Id;
|
||||||
import org.springframework.data.annotation.LastModifiedDate;
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
import org.springframework.data.mongodb.core.index.CompoundIndex;
|
import org.springframework.data.mongodb.core.index.CompoundIndex;
|
||||||
import org.springframework.data.mongodb.core.index.Indexed;
|
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
|
|
||||||
@Document
|
@Document
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ package de.twomartens.wahlrecht.model.dto.v1;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
|
|
||||||
@Builder
|
@Builder
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
package de.twomartens.wahlrecht.model.dto.v1;
|
package de.twomartens.wahlrecht.model.dto.v1;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
public record PartyInElection(String electionName, String abbreviation, String name,
|
public record PartyInElection(String electionName, String abbreviation, String name,
|
||||||
Nomination overallNomination,
|
Nomination overallNomination,
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ package de.twomartens.wahlrecht.model.dto.v1;
|
|||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
|
|
||||||
@Builder
|
@Builder
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package de.twomartens.wahlrecht.model.dto.v1;
|
package de.twomartens.wahlrecht.model.dto.v1;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
public record VotingResult(int votesOnNomination, int votesThroughHealing, Integer totalVotes,
|
public record VotingResult(int votesOnNomination, int votesThroughHealing, Integer totalVotes,
|
||||||
Map<Integer, Integer> votesPerPosition, String nominationName) {
|
Map<Integer, Integer> votesPerPosition, String nominationName) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#TODO zufaellige Ports eintragen
|
#TODO zufaellige Ports eintragen
|
||||||
server.port: 12000
|
server.port: 12000
|
||||||
grpc.server.port: 12002
|
|
||||||
management.server.port: 12001
|
management.server.port: 12001
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
server:
|
server:
|
||||||
port: 8080
|
port: 8080
|
||||||
shutdown: graceful
|
shutdown: graceful
|
||||||
grpc.server.port: 9090
|
|
||||||
|
|
||||||
### technical configurations ###
|
### technical configurations ###
|
||||||
management:
|
management:
|
||||||
|
|||||||
Reference in New Issue
Block a user