sonar fix: Update App.java (#1896)
* Update App.java Sonar issue fix * Update App.java
This commit is contained in:
parent
22ddd57146
commit
36c6ce1df7
@ -41,6 +41,8 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class App {
|
public class App {
|
||||||
|
|
||||||
|
private static final String MANUFACTURED = "{} manufactured {}";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Program entry point.
|
* Program entry point.
|
||||||
* @param args command line args
|
* @param args command line args
|
||||||
@ -49,14 +51,14 @@ public class App {
|
|||||||
|
|
||||||
Blacksmith blacksmith = new OrcBlacksmith();
|
Blacksmith blacksmith = new OrcBlacksmith();
|
||||||
Weapon weapon = blacksmith.manufactureWeapon(WeaponType.SPEAR);
|
Weapon weapon = blacksmith.manufactureWeapon(WeaponType.SPEAR);
|
||||||
LOGGER.info("{} manufactured {}", blacksmith, weapon);
|
LOGGER.info(MANUFACTURED, blacksmith, weapon);
|
||||||
weapon = blacksmith.manufactureWeapon(WeaponType.AXE);
|
weapon = blacksmith.manufactureWeapon(WeaponType.AXE);
|
||||||
LOGGER.info("{} manufactured {}", blacksmith, weapon);
|
LOGGER.info(MANUFACTURED, blacksmith, weapon);
|
||||||
|
|
||||||
blacksmith = new ElfBlacksmith();
|
blacksmith = new ElfBlacksmith();
|
||||||
weapon = blacksmith.manufactureWeapon(WeaponType.SPEAR);
|
weapon = blacksmith.manufactureWeapon(WeaponType.SPEAR);
|
||||||
LOGGER.info("{} manufactured {}", blacksmith, weapon);
|
LOGGER.info(MANUFACTURED, blacksmith, weapon);
|
||||||
weapon = blacksmith.manufactureWeapon(WeaponType.AXE);
|
weapon = blacksmith.manufactureWeapon(WeaponType.AXE);
|
||||||
LOGGER.info("{} manufactured {}", blacksmith, weapon);
|
LOGGER.info(MANUFACTURED, blacksmith, weapon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user