public class TestFinal2 { static void foo(final boolean b) { if (b) { int i = 12; System.out.println("i = " + i); } } }