📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@ -39,10 +39,9 @@ Wikipedia says
|
||||
Let's first introduce the template method class along with its concrete implementations.
|
||||
|
||||
```java
|
||||
@Slf4j
|
||||
public abstract class StealingMethod {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(StealingMethod.class);
|
||||
|
||||
protected abstract String pickTarget();
|
||||
|
||||
protected abstract void confuseTarget(String target);
|
||||
@ -57,10 +56,9 @@ public abstract class StealingMethod {
|
||||
}
|
||||
}
|
||||
|
||||
@Slf4j
|
||||
public class SubtleMethod extends StealingMethod {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SubtleMethod.class);
|
||||
|
||||
@Override
|
||||
protected String pickTarget() {
|
||||
return "shop keeper";
|
||||
@ -77,10 +75,9 @@ public class SubtleMethod extends StealingMethod {
|
||||
}
|
||||
}
|
||||
|
||||
@Slf4j
|
||||
public class HitAndRunMethod extends StealingMethod {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(HitAndRunMethod.class);
|
||||
|
||||
@Override
|
||||
protected String pickTarget() {
|
||||
return "old goblin woman";
|
||||
|
Reference in New Issue
Block a user