Skip to content

Commit 3220f0b

Browse files
committed
修改类名
1 parent eee5951 commit 3220f0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

decorator/src/main/java/me/zbl/decorator/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void main(String[] args) {
4141
carpenter.chekcAfter();
4242

4343
LOGGER.info("由铁匠完成锤把以及锤头的制作");
44-
Operation hammerSmith = new HammerSmith(carpenter);
44+
Operation hammerSmith = new HammerSmithOperation(carpenter);
4545
hammerSmith.checkBefore();
4646
hammerSmith.join();
4747
hammerSmith.chekcAfter();

decorator/src/main/java/me/zbl/decorator/HammerSmith.java renamed to decorator/src/main/java/me/zbl/decorator/HammerSmithOperation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
/**
3030
* 铁匠
3131
*/
32-
public class HammerSmith implements Operation {
32+
public class HammerSmithOperation implements Operation {
3333

34-
private static final Logger LOGGER = LoggerFactory.getLogger(HammerSmith.class);
34+
private static final Logger LOGGER = LoggerFactory.getLogger(HammerSmithOperation.class);
3535
private Operation previousOperation;
3636

37-
public HammerSmith(Operation previousOperation) {
37+
public HammerSmithOperation(Operation previousOperation) {
3838
this.previousOperation = previousOperation;
3939
}
4040

0 commit comments

Comments
 (0)