Skip to content

Commit

Permalink
sonar fix: Update App.java (#1896)
Browse files Browse the repository at this point in the history
* Update App.java

Sonar issue fix

* Update App.java
  • Loading branch information
harshalkh committed Oct 31, 2021
1 parent 22ddd57 commit 36c6ce1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
@Slf4j
public class App {

private static final String MANUFACTURED = "{} manufactured {}";

/**
* Program entry point.
* @param args command line args
Expand All @@ -49,14 +51,14 @@ public static void main(String[] args) {

Blacksmith blacksmith = new OrcBlacksmith();
Weapon weapon = blacksmith.manufactureWeapon(WeaponType.SPEAR);
LOGGER.info("{} manufactured {}", blacksmith, weapon);
LOGGER.info(MANUFACTURED, blacksmith, weapon);
weapon = blacksmith.manufactureWeapon(WeaponType.AXE);
LOGGER.info("{} manufactured {}", blacksmith, weapon);
LOGGER.info(MANUFACTURED, blacksmith, weapon);

blacksmith = new ElfBlacksmith();
weapon = blacksmith.manufactureWeapon(WeaponType.SPEAR);
LOGGER.info("{} manufactured {}", blacksmith, weapon);
LOGGER.info(MANUFACTURED, blacksmith, weapon);
weapon = blacksmith.manufactureWeapon(WeaponType.AXE);
LOGGER.info("{} manufactured {}", blacksmith, weapon);
LOGGER.info(MANUFACTURED, blacksmith, weapon);
}
}

0 comments on commit 36c6ce1

Please sign in to comment.