mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-08 10:13:05 +00:00
refactor: Declares the template method as final (Issue 1099) (#2057)
This commit is contained in:
1 parent
8a7c7b6f21
commit
67f01d43aa
4 files changed
+20
-9
No files matched your search
@@ -41,7 +41,7 @@ public abstract class StealingMethod {
|
||||
/**
|
||||
* Steal.
|
||||
*/
|
||||
public void steal() {
|
||||
public final void steal() {
|
||||
var target = pickTarget();
|
||||
LOGGER.info("The target has been chosen as {}.", target);
|
||||
confuseTarget(target);
|
||||
|
||||
Reference in new issue
Block a user