mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 17:26:44 +00:00
refactor: Declares the template method as final (Issue 1099) (#2057)
This commit is contained in:
@@ -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