int[] (boolean outer) { int[] src = new int[] { 1, 2, 3}; int[] dest = new int[] { 4, 5, 6, 7, 8, 9 }; int length; if (outer) { length = 3; // maybe this branch is never reached due to outer condition } else { length = 1; } System.arraycopy(src, 2, dest, 2, length); return dest; }