From 6c83724abfd3fc5395c038e9d57528e811e7745c Mon Sep 17 00:00:00 2001 From: dmitry-weirdo Date: Thu, 21 Nov 2024 03:54:26 +0100 Subject: [PATCH] feat: #81 Some re-build magic - actually the Lombok-generated getters ARE working in Kotlin classes (even in IntelliJ IDEA). --- kgstatsSrv/pom.xml | 14 +++++++++++++ .../java/ru/klavogonki/statistics/Config.java | 21 ------------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/kgstatsSrv/pom.xml b/kgstatsSrv/pom.xml index a64780c6..232f2b43 100644 --- a/kgstatsSrv/pom.xml +++ b/kgstatsSrv/pom.xml @@ -265,6 +265,20 @@ lombok-mapstruct-binding ${lombok-mapstruct-binding.version} + + + + + diff --git a/kgstatsSrv/src/main/java/ru/klavogonki/statistics/Config.java b/kgstatsSrv/src/main/java/ru/klavogonki/statistics/Config.java index edc84279..09065090 100644 --- a/kgstatsSrv/src/main/java/ru/klavogonki/statistics/Config.java +++ b/kgstatsSrv/src/main/java/ru/klavogonki/statistics/Config.java @@ -29,27 +29,6 @@ public class Config { // @see ExportContext private String statisticsPagesRootDir; - // Explicit non-Lombok getters added to make the usage from the Kotlin clas work (see ExportContext). - public int getMinPlayerId() { - return minPlayerId; - } - - public int getMaxPlayerId() { - return maxPlayerId; - } - - public OffsetDateTime getDataDownloadStartDate() { - return dataDownloadStartDate; - } - - public OffsetDateTime getDataDownloadEndDate() { - return dataDownloadEndDate; - } - - public String getStatisticsPagesRootDir() { - return statisticsPagesRootDir; - } - @JsonProperty(access = JsonProperty.Access.READ_ONLY) // do not de-serialize, there is no setter and no field public int getTotalPlayers() { return maxPlayerId - minPlayerId + 1;