From: Kai Moritz Date: Tue, 11 Jun 2024 20:53:11 +0000 (+0200) Subject: query: 2.0.0 - Refined the Lombok-Annotations for the model-classes X-Git-Tag: popular-on-query~12 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2cc9929cfdccc6974a4c66b27b939fc6c74905e4;p=demos%2Fkafka%2Fwordcount query: 2.0.0 - Refined the Lombok-Annotations for the model-classes --- 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 {