mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-26 01:58:34 +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:
@@ -35,12 +35,12 @@ public class Cash {
|
||||
|
||||
private int amount;
|
||||
|
||||
//plus
|
||||
// plus
|
||||
void plus(int addend) {
|
||||
amount += addend;
|
||||
}
|
||||
|
||||
//minus
|
||||
// minus
|
||||
boolean minus(int subtrahend) {
|
||||
if (amount >= subtrahend) {
|
||||
amount -= subtrahend;
|
||||
@@ -50,7 +50,7 @@ public class Cash {
|
||||
}
|
||||
}
|
||||
|
||||
//count
|
||||
// count
|
||||
int count() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user