void (boolean outer) { int[] src = new int[] { 1, 2, 3, 4, 5 }; int srcPos; if (outer) { srcPos = 0; } else { srcPos = 1; // maybe this branch never reached due to outer condition } System.arraycopy(src, srcPos, src, 2, 2); }