mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 06:58:54 +00:00
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@@ -23,9 +23,12 @@
|
||||
|
||||
package com.iluwatar.tolerantreader;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* RainbowFishV2 is the evolved schema.
|
||||
*/
|
||||
@Getter
|
||||
public class RainbowFishV2 extends RainbowFish {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -49,15 +52,4 @@ public class RainbowFishV2 extends RainbowFish {
|
||||
this.angry = angry;
|
||||
}
|
||||
|
||||
public boolean getSleeping() {
|
||||
return sleeping;
|
||||
}
|
||||
|
||||
public boolean getHungry() {
|
||||
return hungry;
|
||||
}
|
||||
|
||||
public boolean getAngry() {
|
||||
return angry;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user