Repository: iluwatar/java-design-patterns
Issue: Add lombok to MVC pattern
Labels: info: good first issue
type: refactoring
epic: code quality

The pattern currently runs without lombok, I'm adding it so we can have the code more similar to new generation code 

Issue comments:
Ok @burno1 

Pull request review comments:

Patch that resolved the issue:
diff --git a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Fatigue.java b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Fatigue.java
index 0cf9941ce4c3..00cced2407a2 100644
--- a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Fatigue.java
+++ b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Fatigue.java
@@ -24,9 +24,12 @@
  */
 package com.iluwatar.model.view.controller;
 
+import lombok.AllArgsConstructor;
+
 /**
  * Fatigue enumeration.
  */
+@AllArgsConstructor
 public enum Fatigue {
   ALERT("alert"),
   TIRED("tired"),
@@ -34,9 +37,6 @@ public enum Fatigue {
 
   private final String title;
 
-  Fatigue(String title) {
-    this.title = title;
-  }
 
   @Override
   public String toString() {
diff --git a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/GiantModel.java b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/GiantModel.java
index e6206e065626..3de47cdcba6d 100644
--- a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/GiantModel.java
+++ b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/GiantModel.java
@@ -24,47 +24,26 @@
  */
 package com.iluwatar.model.view.controller;
 
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
 /**
  * GiantModel contains the giant data.
  */
+@Getter
+@Setter
+@Builder
+@AllArgsConstructor
+@NoArgsConstructor
 public class GiantModel {
 
   private Health health;
   private Fatigue fatigue;
   private Nourishment nourishment;
 
-  /**
-   * Instantiates a new GiantModel.
-   */
-  public GiantModel(Health health, Fatigue fatigue, Nourishment nourishment) {
-    this.health = health;
-    this.fatigue = fatigue;
-    this.nourishment = nourishment;
-  }
-
-  public Health getHealth() {
-    return health;
-  }
-
-  public void setHealth(Health health) {
-    this.health = health;
-  }
-
-  public Fatigue getFatigue() {
-    return fatigue;
-  }
-
-  public void setFatigue(Fatigue fatigue) {
-    this.fatigue = fatigue;
-  }
-
-  public Nourishment getNourishment() {
-    return nourishment;
-  }
-
-  public void setNourishment(Nourishment nourishment) {
-    this.nourishment = nourishment;
-  }
 
   @Override
   public String toString() {
diff --git a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Health.java b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Health.java
index 75b50a3486ea..0f54f5cd3825 100644
--- a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Health.java
+++ b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Health.java
@@ -24,9 +24,12 @@
  */
 package com.iluwatar.model.view.controller;
 
+import lombok.AllArgsConstructor;
+
 /**
  * Health enumeration.
  */
+@AllArgsConstructor
 public enum Health {
   HEALTHY("healthy"),
   WOUNDED("wounded"),
@@ -34,9 +37,6 @@ public enum Health {
 
   private final String title;
 
-  Health(String title) {
-    this.title = title;
-  }
 
   @Override
   public String toString() {
diff --git a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Nourishment.java b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Nourishment.java
index e8ec91cf5710..f08a9c5bced3 100644
--- a/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Nourishment.java
+++ b/model-view-controller/src/main/java/com/iluwatar/model/view/controller/Nourishment.java
@@ -24,9 +24,12 @@
  */
 package com.iluwatar.model.view.controller;
 
+import lombok.AllArgsConstructor;
+
 /**
  * Nourishment enumeration.
  */
+@AllArgsConstructor
 public enum Nourishment {
   SATURATED("saturated"),
   HUNGRY("hungry"),
@@ -34,9 +37,6 @@ public enum Nourishment {
 
   private final String title;
 
-  Nourishment(String title) {
-    this.title = title;
-  }
 
   @Override
   public String toString() {


Test patch: