mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 16:59:32 +00:00
Formatted all files to the same standard
This commit is contained in:
@@ -3,7 +3,7 @@ package com.iluwatar;
|
||||
/**
|
||||
*
|
||||
* DragonSlayer uses different strategies to slay the dragon.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class DragonSlayer {
|
||||
|
||||
@@ -16,7 +16,7 @@ public class DragonSlayer {
|
||||
public void changeStrategy(DragonSlayingStrategy strategy) {
|
||||
this.strategy = strategy;
|
||||
}
|
||||
|
||||
|
||||
public void goToBattle() {
|
||||
strategy.execute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user