local variable type inference changes (#1041)

local variable type inference changes for template method design pattern
This commit is contained in:
GVSharma
2019-10-26 21:17:43 +05:30
committed by Ilkka Seppälä
parent af8c5ed0dd
commit 03e1e92b52
2 changed files with 2 additions and 2 deletions
@@ -45,7 +45,7 @@ public abstract class StealingMethod {
* Steal
*/
public void steal() {
String target = pickTarget();
var target = pickTarget();
LOGGER.info("The target has been chosen as {}.", target);
confuseTarget(target);
stealTheItem(target);