mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 08:59:12 +00:00
deps: Refactor dependencies (#3224)
* remove spring dep move junit, logging, mockito under dep mgmt * upgrade anti-corruption-layer deps * async method invocation * balking, bloc * bridge to bytecode * caching * callback - cqrs * component - health check * hexagonal - metadata mapping * rest of the patterns * remove checkstyle, take spotless into use
This commit is contained in:
@@ -27,14 +27,11 @@ package com.iluwatar.tolerantreader;
|
||||
import java.io.Serial;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* RainbowFishV2 is the evolved schema.
|
||||
*/
|
||||
/** RainbowFishV2 is the evolved schema. */
|
||||
@Getter
|
||||
public class RainbowFishV2 extends RainbowFish {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Serial private static final long serialVersionUID = 1L;
|
||||
|
||||
private boolean sleeping;
|
||||
private boolean hungry;
|
||||
@@ -44,15 +41,18 @@ public class RainbowFishV2 extends RainbowFish {
|
||||
super(name, age, lengthMeters, weightTons);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public RainbowFishV2(String name, int age, int lengthMeters, int weightTons, boolean sleeping,
|
||||
boolean hungry, boolean angry) {
|
||||
/** Constructor. */
|
||||
public RainbowFishV2(
|
||||
String name,
|
||||
int age,
|
||||
int lengthMeters,
|
||||
int weightTons,
|
||||
boolean sleeping,
|
||||
boolean hungry,
|
||||
boolean angry) {
|
||||
this(name, age, lengthMeters, weightTons);
|
||||
this.sleeping = sleeping;
|
||||
this.hungry = hungry;
|
||||
this.angry = angry;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user