query: 2.0.0 - Refined the Lombok-Annotations for the model-classes
authorKai Moritz <kai@juplo.de>
Tue, 11 Jun 2024 20:53:11 +0000 (22:53 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 15 Jun 2024 06:22:34 +0000 (08:22 +0200)
src/main/java/de/juplo/kafka/wordcount/query/Ranking.java
src/main/java/de/juplo/kafka/wordcount/query/User.java

index 69ae3aa..8966be6 100644 (file)
@@ -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;
index fdc0a33..f62b475 100644 (file)
@@ -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
 {