mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
docs: update crtp
This commit is contained in:
1 parent
9890579de4
commit
0c31312510
5 files changed
+39
-63
No files matched your search
@@ -47,6 +47,5 @@ public class App {
|
||||
MmaHeavyweightFighter fighter3 = new MmaHeavyweightFighter("Dave", "Davidson", "The Bug Smasher", "Kickboxing");
|
||||
MmaHeavyweightFighter fighter4 = new MmaHeavyweightFighter("Jack", "Jackson", "The Pragmatic", "Brazilian Jiu-Jitsu");
|
||||
fighter3.fight(fighter4);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -45,5 +45,4 @@ public class MmaFighter<T extends MmaFighter<T>> implements Fighter<T> {
|
||||
public void fight(T opponent) {
|
||||
LOGGER.info("{} is going to fight against {}", this, opponent);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user