class Test { void test(int num) { m(num == 1 ? null : new Integer(1)); } void m(String s, int i) {} }