From a1a7d0b00eeb09e90f95b99b8ab8a8e9ed7eb4c0 Mon Sep 17 00:00:00 2001 From: Sergey Podobry Date: Tue, 11 Jun 2024 23:39:28 +0300 Subject: [PATCH] Use more lombok for DTOs --- src/main/java/com/vergiliusproject/dto/TypeEntry.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/vergiliusproject/dto/TypeEntry.java b/src/main/java/com/vergiliusproject/dto/TypeEntry.java index ba7756e..e0195d2 100644 --- a/src/main/java/com/vergiliusproject/dto/TypeEntry.java +++ b/src/main/java/com/vergiliusproject/dto/TypeEntry.java @@ -1,11 +1,9 @@ package com.vergiliusproject.dto; +import lombok.AllArgsConstructor; + +@AllArgsConstructor public class TypeEntry { public String name; - public boolean isNew; - - public TypeEntry(String name, boolean isNew) { - this.name = name; - this.isNew = isNew; - } + public boolean isNew; } \ No newline at end of file