From: Kai Moritz Date: Tue, 11 Jun 2024 20:53:11 +0000 (+0200) Subject: WIP:lombok X-Git-Tag: query-with-kafkaproducer~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7dabdc6df0d2eb783c72e65831ec8a80fc677253;p=demos%2Fkafka%2Fwordcount WIP:lombok --- diff --git a/src/main/java/de/juplo/kafka/wordcount/query/Ranking.java b/src/main/java/de/juplo/kafka/wordcount/query/Ranking.java index 69ae3aa..8966be6 100644 --- a/src/main/java/de/juplo/kafka/wordcount/query/Ranking.java +++ b/src/main/java/de/juplo/kafka/wordcount/query/Ranking.java @@ -1,15 +1,9 @@ package de.juplo.kafka.wordcount.query; -import lombok.Getter; -import lombok.Setter; +import lombok.Data; -import java.util.Arrays; -import java.util.LinkedList; -import java.util.List; - -@Getter -@Setter +@Data public class Ranking { private Entry[] entries; diff --git a/src/main/java/de/juplo/kafka/wordcount/query/User.java b/src/main/java/de/juplo/kafka/wordcount/query/User.java index fdc0a33..f62b475 100644 --- a/src/main/java/de/juplo/kafka/wordcount/query/User.java +++ b/src/main/java/de/juplo/kafka/wordcount/query/User.java @@ -1,14 +1,10 @@ package de.juplo.kafka.wordcount.query; +import lombok.Data; import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.Setter; -import lombok.ToString; -@Getter -@Setter -@ToString +@Data @EqualsAndHashCode(of = "username") public class User {