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

View File

@@ -40,7 +40,7 @@ public class App {
* @param args command line args
*/
public static void main(String[] args) {
HalflingThief thief = new HalflingThief(new HitAndRunMethod());
var thief = new HalflingThief(new HitAndRunMethod());
thief.steal();
thief.changeMethod(new SubtleMethod());
thief.steal();