File tree 1 file changed +6
-4
lines changed
factory-method/src/main/java/com/iluwatar/factory/method
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 41
41
@ Slf4j
42
42
public class App {
43
43
44
+ private static final String MANUFACTURED = "{} manufactured {}" ;
45
+
44
46
/**
45
47
* Program entry point.
46
48
* @param args command line args
@@ -49,14 +51,14 @@ public static void main(String[] args) {
49
51
50
52
Blacksmith blacksmith = new OrcBlacksmith ();
51
53
Weapon weapon = blacksmith .manufactureWeapon (WeaponType .SPEAR );
52
- LOGGER .info ("{} manufactured {}" , blacksmith , weapon );
54
+ LOGGER .info (MANUFACTURED , blacksmith , weapon );
53
55
weapon = blacksmith .manufactureWeapon (WeaponType .AXE );
54
- LOGGER .info ("{} manufactured {}" , blacksmith , weapon );
56
+ LOGGER .info (MANUFACTURED , blacksmith , weapon );
55
57
56
58
blacksmith = new ElfBlacksmith ();
57
59
weapon = blacksmith .manufactureWeapon (WeaponType .SPEAR );
58
- LOGGER .info ("{} manufactured {}" , blacksmith , weapon );
60
+ LOGGER .info (MANUFACTURED , blacksmith , weapon );
59
61
weapon = blacksmith .manufactureWeapon (WeaponType .AXE );
60
- LOGGER .info ("{} manufactured {}" , blacksmith , weapon );
62
+ LOGGER .info (MANUFACTURED , blacksmith , weapon );
61
63
}
62
64
}
You can’t perform that action at this time.
0 commit comments