@Test public void testError() { final Object[] objectArray0 = new Object[0]; try { FormattingTuple.trimmedCopy(objectArray0); fail("Expecting exception: IllegalStateException"); } catch (final IllegalStateException e) { } try { FormattingTuple.trimmedCopy((Object[]) null); fail("Expecting exception: IllegalStateException"); } catch (final IllegalStateException e) { } }
static final Object[] trimmedCopy(final Object[] argArray) { if (argArray == null || argArray.length == 0) { throw new IllegalStateException("non-sensical empty or null argument array"); } final int trimemdLen = argArray.length - 1; final Object[] trimmed = new Object[trimemdLen]; System.arraycopy(argArray, 0, trimmed, 0, trimemdLen); return trimmed; }
FormattingTuple { static final Object[] trimmedCopy(final Object[] argArray) { if (argArray == null || argArray.length == 0) { throw new IllegalStateException("non-sensical empty or null argument array"); } final int trimemdLen = argArray.length - 1; final Object[] trimmed = new Object[trimemdLen]; System.arraycopy(argArray, 0, trimmed, 0, trimemdLen); return trimmed; } }
FormattingTuple { static final Object[] trimmedCopy(final Object[] argArray) { if (argArray == null || argArray.length == 0) { throw new IllegalStateException("non-sensical empty or null argument array"); } final int trimemdLen = argArray.length - 1; final Object[] trimmed = new Object[trimemdLen]; System.arraycopy(argArray, 0, trimmed, 0, trimemdLen); return trimmed; } FormattingTuple(final String message);   FormattingTuple(final String message, final Object[] argArray,
        final Throwable throwable); }
FormattingTuple { static final Object[] trimmedCopy(final Object[] argArray) { if (argArray == null || argArray.length == 0) { throw new IllegalStateException("non-sensical empty or null argument array"); } final int trimemdLen = argArray.length - 1; final Object[] trimmed = new Object[trimemdLen]; System.arraycopy(argArray, 0, trimmed, 0, trimemdLen); return trimmed; } FormattingTuple(final String message);   FormattingTuple(final String message, final Object[] argArray,
        final Throwable throwable); final String getMessage(); final Object[] getArgArray(); final Throwable getThrowable(); }
FormattingTuple { static final Object[] trimmedCopy(final Object[] argArray) { if (argArray == null || argArray.length == 0) { throw new IllegalStateException("non-sensical empty or null argument array"); } final int trimemdLen = argArray.length - 1; final Object[] trimmed = new Object[trimemdLen]; System.arraycopy(argArray, 0, trimmed, 0, trimemdLen); return trimmed; } FormattingTuple(final String message);   FormattingTuple(final String message, final Object[] argArray,
        final Throwable throwable); final String getMessage(); final Object[] getArgArray(); final Throwable getThrowable();  }