diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/mapper/v1/SeatResultMapper.java b/module-server/src/main/java/de/twomartens/wahlrecht/mapper/v1/SeatResultMapper.java index 4cc6c7b..a04b718 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/mapper/v1/SeatResultMapper.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/mapper/v1/SeatResultMapper.java @@ -1,8 +1,6 @@ package de.twomartens.wahlrecht.mapper.v1; import de.twomartens.wahlrecht.model.internal.SeatResult; -import java.util.Deque; -import java.util.LinkedList; import org.mapstruct.CollectionMappingStrategy; import org.mapstruct.Mapper; import org.mapstruct.NullValueCheckStrategy; diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/model/db/Nomination.java b/module-server/src/main/java/de/twomartens/wahlrecht/model/db/Nomination.java index 8f17df0..7bda16c 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/model/db/Nomination.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/model/db/Nomination.java @@ -42,8 +42,4 @@ public class Nomination { String electionName; Collection candidates; boolean supportVotesOnNomination; - - public boolean supportsVotesOnNomination() { - return supportVotesOnNomination; - } } diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/model/db/PartyInElection.java b/module-server/src/main/java/de/twomartens/wahlrecht/model/db/PartyInElection.java index e0f3b2c..ecb0aa6 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/model/db/PartyInElection.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/model/db/PartyInElection.java @@ -16,7 +16,6 @@ import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.Id; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.mongodb.core.index.CompoundIndex; -import org.springframework.data.mongodb.core.index.Indexed; import org.springframework.data.mongodb.core.mapping.Document; @Document diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/ElectedResult.java b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/ElectedResult.java index de506db..41fa17e 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/ElectedResult.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/ElectedResult.java @@ -3,8 +3,6 @@ package de.twomartens.wahlrecht.model.dto.v1; import java.util.Collection; import java.util.LinkedList; import java.util.Map; -import java.util.Map.Entry; -import java.util.stream.Collectors; import lombok.Builder; @Builder diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/PartyInElection.java b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/PartyInElection.java index 0d535a7..a0707b5 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/PartyInElection.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/PartyInElection.java @@ -1,9 +1,6 @@ package de.twomartens.wahlrecht.model.dto.v1; import java.util.Map; -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import lombok.Setter; public record PartyInElection(String electionName, String abbreviation, String name, Nomination overallNomination, diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/SeatResult.java b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/SeatResult.java index af4942c..fec6be8 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/SeatResult.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/SeatResult.java @@ -2,8 +2,6 @@ package de.twomartens.wahlrecht.model.dto.v1; import java.util.LinkedList; import java.util.Map; -import java.util.Map.Entry; -import java.util.stream.Collectors; import lombok.Builder; @Builder diff --git a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/VotingResult.java b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/VotingResult.java index b30d459..4bdeda4 100644 --- a/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/VotingResult.java +++ b/module-server/src/main/java/de/twomartens/wahlrecht/model/dto/v1/VotingResult.java @@ -1,8 +1,6 @@ package de.twomartens.wahlrecht.model.dto.v1; import java.util.Map; -import lombok.Builder; -import lombok.Getter; public record VotingResult(int votesOnNomination, int votesThroughHealing, Integer totalVotes, Map votesPerPosition, String nominationName) { diff --git a/module-server/src/main/resources/application-dev.yaml b/module-server/src/main/resources/application-dev.yaml index 81f19d9..5026c44 100644 --- a/module-server/src/main/resources/application-dev.yaml +++ b/module-server/src/main/resources/application-dev.yaml @@ -1,4 +1,3 @@ #TODO zufaellige Ports eintragen server.port: 12000 -grpc.server.port: 12002 management.server.port: 12001 diff --git a/module-server/src/main/resources/application.yaml b/module-server/src/main/resources/application.yaml index 9a6fa4f..33e2ba3 100644 --- a/module-server/src/main/resources/application.yaml +++ b/module-server/src/main/resources/application.yaml @@ -1,7 +1,6 @@ server: port: 8080 shutdown: graceful -grpc.server.port: 9090 ### technical configurations ### management: