mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 02:14:07 +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:
1 parent
371439aeaa
commit
0ca162a55c
1863 files changed
+14403
-17632
No files matched your search
@@ -26,9 +26,7 @@ package com.iluwatar.privateclassdata;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* Immutable stew class, protected with Private Class Data pattern.
|
||||
*/
|
||||
/** Immutable stew class, protected with Private Class Data pattern. */
|
||||
@Slf4j
|
||||
public class ImmutableStew {
|
||||
|
||||
@@ -38,12 +36,13 @@ public class ImmutableStew {
|
||||
data = new StewData(numPotatoes, numCarrots, numMeat, numPeppers);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mix the stew.
|
||||
*/
|
||||
/** Mix the stew. */
|
||||
public void mix() {
|
||||
LOGGER
|
||||
.info("Mixing the immutable stew we find: {} potatoes, {} carrots, {} meat and {} peppers",
|
||||
data.numPotatoes(), data.numCarrots(), data.numMeat(), data.numPeppers());
|
||||
LOGGER.info(
|
||||
"Mixing the immutable stew we find: {} potatoes, {} carrots, {} meat and {} peppers",
|
||||
data.numPotatoes(),
|
||||
data.numCarrots(),
|
||||
data.numMeat(),
|
||||
data.numPeppers());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user