@@ -10,11 +10,11 @@ interface I { Class getClass(); // error: cannot overide final from Object static class T { static void f(I i) { if (i == null) { - Integer x = new Integer(2); + Integer x = Integer.valueOf(2); } else { I x = i; x.getClass(); } }