@Test public void testConcatArrays() { StackTraceElement s1 = new StackTraceElement("a", "b", "c", 123); StackTraceElement s2 = new StackTraceElement("d", "e", "f", 456); StackTraceElement[] concatenated = ExceptionUtils.concatArrays( new StackTraceElement[]{s1}, new StackTraceElement[]{s2}); Assert.assertArrayEquals(new StackTraceElement[]{ s1, s2 }, concatenated); }
@VisibleForTesting static StackTraceElement[] concatArrays(StackTraceElement[] a, StackTraceElement[] b) { StackTraceElement[] returnMe = new StackTraceElement[a.length + b.length]; System.arraycopy(a, 0, returnMe, 0, a.length); System.arraycopy(b, 0, returnMe, a.length, b.length); return returnMe; }
ExceptionUtils { @VisibleForTesting static StackTraceElement[] concatArrays(StackTraceElement[] a, StackTraceElement[] b) { StackTraceElement[] returnMe = new StackTraceElement[a.length + b.length]; System.arraycopy(a, 0, returnMe, 0, a.length); System.arraycopy(b, 0, returnMe, a.length, b.length); return returnMe; } }
ExceptionUtils { @VisibleForTesting static StackTraceElement[] concatArrays(StackTraceElement[] a, StackTraceElement[] b) { StackTraceElement[] returnMe = new StackTraceElement[a.length + b.length]; System.arraycopy(a, 0, returnMe, 0, a.length); System.arraycopy(b, 0, returnMe, a.length, b.length); return returnMe; }  }
ExceptionUtils { @VisibleForTesting static StackTraceElement[] concatArrays(StackTraceElement[] a, StackTraceElement[] b) { StackTraceElement[] returnMe = new StackTraceElement[a.length + b.length]; System.arraycopy(a, 0, returnMe, 0, a.length); System.arraycopy(b, 0, returnMe, a.length, b.length); return returnMe; }  static void blameBankdroid(Throwable exception); }
ExceptionUtils { @VisibleForTesting static StackTraceElement[] concatArrays(StackTraceElement[] a, StackTraceElement[] b) { StackTraceElement[] returnMe = new StackTraceElement[a.length + b.length]; System.arraycopy(a, 0, returnMe, 0, a.length); System.arraycopy(b, 0, returnMe, a.length, b.length); return returnMe; }  static void blameBankdroid(Throwable exception);  }