void (List<Long> list, int i) { assertEquals(1L, (i >= 0 ? (long) getLong(list, i) : 2L)); assertEquals(1L, i >= 0 ? (long) getLong(list, i) : 2L); assertEquals(1L, (i >= 0 ? (<warning descr="Casting 'list.get(...)' to 'long' is redundant">long</warning>) list.get(i) : 2L)); assertEquals(1L, i >= 0 ? (<warning descr="Casting 'list.get(...)' to 'long' is redundant">long</warning>) list.get(i) : 2L); }