From 2cc9929cfdccc6974a4c66b27b939fc6c74905e4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 11 Jun 2024 22:53:11 +0200 Subject: [PATCH] query: 2.0.0 - Refined the Lombok-Annotations for the model-classes --- .../java/de/juplo/kafka/wordcount/query/Ranking.java | 10 ++-------- src/main/java/de/juplo/kafka/wordcount/query/User.java | 8 ++------ 2 files changed, 4 insertions(+), 14 deletions(-) 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 { -- 2.20.1