Skip to content

Commit

Permalink
undo entfernter Leerzeilen nach Klassendfinition mit 'record'
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonfly28 committed Sep 18, 2024
1 parent 77b92cb commit 44e3822
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import java.util.List;

public record BroadcastMessageDTO(@NotNull List<String> wahlbezirkIDs, @NotNull String nachricht) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

@Slf4j
public record WlsExceptionDTO(@NotNull WlsExceptionCategory category, @NotNull String code, @NotNull String service, @NotNull String message) {

public WlsExceptionDTO(final WlsExceptionCategory category, final String code, final String service, final String message) {
this.category = Optional.ofNullable(category).orElseGet(() -> {
log.warn("Category ist nicht enthalten");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record BriefwahlvorbereitungWriteDTO(@NotNull java.util.List<WahlurneDTO> urnenAnzahl) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record EroeffnungsUhrzeitWriteDTO(@NotNull LocalDateTime eroeffnungsuhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

public record FortsetzungsUhrzeitDTO(@NotNull String wahlbezirkID,
@NotNull LocalDateTime fortsetzungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record FortsetzungsUhrzeitWriteDTO(@NotNull LocalDateTime fortsetzungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

public record UnterbrechungsUhrzeitDTO(@NotNull String wahlbezirkID,
@NotNull LocalDateTime unterbrechungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record UnterbrechungsUhrzeitWriteDTO(@NotNull LocalDateTime unterbrechungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

public record UrnenwahlSchliessungsUhrzeitDTO(@NotNull String wahlbezirkID,
@NotNull LocalDateTime urnenwahlSchliessungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record UrnenwahlSchliessungsUhrzeitWriteDTO(@NotNull LocalDateTime urnenwahlSchliessungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public record UrnenwahlvorbereitungDTO(@NotNull String wahlbezirkID,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) long anzahlWahltische,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) long anzahlNebenraeume,
@NotNull @Size(min = 1) List<WahlurneDTO> urnenAnzahl) {

public UrnenwahlvorbereitungDTO(final String wahlbezirkID, final long anzahlWahlkabinen, final long anzahlWahltische, final long anzahlNebenraeume,
final List<WahlurneDTO> urnenAnzahl) {
this.wahlbezirkID = wahlbezirkID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public record UrnenwahlvorbereitungWriteDTO(@Schema(requiredMode = Schema.Requir
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) long anzahlWahltische,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) long anzahlNebenraeume,
@NotNull @Size(min = 1) List<WahlurneDTO> urnenAnzahl) {

public UrnenwahlvorbereitungWriteDTO(final long anzahlWahlkabinen, final long anzahlWahltische, final long anzahlNebenraeume,
final List<WahlurneDTO> urnenAnzahl) {
this.anzahlWahlkabinen = anzahlWahlkabinen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record BriefwahlvorbereitungModel(@NotNull String wahlbezirkID, @NotNull java.util.List<WahlurneModel> urnenAnzahl) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record EroeffnungsUhrzeitModel(@NotNull String wahlbezirkID, @NotNull LocalDateTime eroeffnungsuhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record FortsetzungsUhrzeitModel(@NotNull String wahlbezirkID, @NotNull LocalDateTime fortsetzungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record UnterbrechungsUhrzeitModel(@NotNull String wahlbezirkID, @NotNull LocalDateTime unterbrechungsUhrzeit) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

@Builder
public record UrnenwahlSchliessungsUhrzeitModel(@NotNull String wahlbezirkID, @NotNull LocalDateTime urnenwahlSchliessungsUhrzeit) {

}

0 comments on commit 44e3822

Please sign in to comment.