Program: 173954
Project: 173954
Buggy source:
/** 
 * Tests for   {@link Arrays#isNotEmpty(long[])},   {@link Arrays#isNotEmpty(int[])},   {@link Arrays#isNotEmpty(short[])},   {@link Arrays#isNotEmpty(char[])},  {@link Arrays#isNotEmpty(byte[])},   {@link Arrays#isNotEmpty(double[])},   {@link Arrays#isNotEmpty(float[])} and {@link Arrays#isNotEmpty(boolean[])}.
 */
@Test public void testIsNotEmptyPrimitives(){
  final long[] emptyLongArray=new long[]{};
  final long[] notEmptyLongArray=new long[]{1L};
  assertFalse(Arrays.isNotEmpty((long[])null));
  assertFalse(Arrays.isNotEmpty(emptyLongArray));
  assertTrue(Arrays.isNotEmpty(notEmptyLongArray));
  final int[] emptyIntArray=new int[]{};
  final int[] notEmptyIntArray=new int[]{1};
  assertFalse(Arrays.isNotEmpty((int[])null));
  assertFalse(Arrays.isNotEmpty(emptyIntArray));
  assertTrue(Arrays.isNotEmpty(notEmptyIntArray));
  final short[] emptyShortArray=new short[]{};
  final short[] notEmptyShortArray=new short[]{1};
  assertFalse(Arrays.isNotEmpty((short[])null));
  assertFalse(Arrays.isNotEmpty(emptyShortArray));
  assertTrue(Arrays.isNotEmpty(notEmptyShortArray));
  final char[] emptyCharArray=new char[]{};
  final char[] notEmptyCharArray=new char[]{1};
  assertFalse(Arrays.isNotEmpty((char[])null));
  assertFalse(Arrays.isNotEmpty(emptyCharArray));
  assertTrue(Arrays.isNotEmpty(notEmptyCharArray));
  final byte[] emptyByteArray=new byte[]{};
  final byte[] notEmptyByteArray=new byte[]{1};
  assertFalse(Arrays.isNotEmpty((byte[])null));
  assertFalse(Arrays.isNotEmpty(emptyByteArray));
  assertTrue(Arrays.isNotEmpty(notEmptyByteArray));
  final double[] emptyDoubleArray=new double[]{};
  final double[] notEmptyDoubleArray=new double[]{1.0};
  assertFalse(Arrays.isNotEmpty((double[])null));
  assertFalse(Arrays.isNotEmpty(emptyDoubleArray));
  assertTrue(Arrays.isNotEmpty(notEmptyDoubleArray));
  final float[] emptyFloatArray=new float[]{};
  final float[] notEmptyFloatArray=new float[]{1.0F};
  assertFalse(Arrays.isNotEmpty((float[])null));
  assertFalse(Arrays.isNotEmpty(emptyFloatArray));
  assertTrue(Arrays.isNotEmpty(notEmptyFloatArray));
  final boolean[] emptyBooleanArray=new boolean[]{};
  final boolean[] notEmptyBooleanArray=new boolean[]{true};
  assertFalse(Arrays.isNotEmpty((boolean[])null));
  assertFalse(Arrays.isNotEmpty(emptyBooleanArray));
  assertTrue(Arrays.isNotEmpty(notEmptyBooleanArray));
}

Fixed version (ground truth):
/** 
 * Tests for {Arrays#isNotEmpty(long[])}, {Arrays#isNotEmpty(int[])}, {Arrays#isNotEmpty(short[])}, {Arrays#isNotEmpty(char[])}, {Arrays#isNotEmpty(byte[])}, {Arrays#isNotEmpty(double[])}, {Arrays#isNotEmpty(float[])} and {Arrays#isNotEmpty(boolean[])}.
 */
@Test public void testIsNotEmptyPrimitives(){
  final long[] emptyLongArray=new long[]{};
  final long[] notEmptyLongArray=new long[]{1L};
  assertFalse(Arrays.isNotEmpty((long[])null));
  assertFalse(Arrays.isNotEmpty(emptyLongArray));
  assertTrue(Arrays.isNotEmpty(notEmptyLongArray));
  final int[] emptyIntArray=new int[]{};
  final int[] notEmptyIntArray=new int[]{1};
  assertFalse(Arrays.isNotEmpty((int[])null));
  assertFalse(Arrays.isNotEmpty(emptyIntArray));
  assertTrue(Arrays.isNotEmpty(notEmptyIntArray));
  final short[] emptyShortArray=new short[]{};
  final short[] notEmptyShortArray=new short[]{1};
  assertFalse(Arrays.isNotEmpty((short[])null));
  assertFalse(Arrays.isNotEmpty(emptyShortArray));
  assertTrue(Arrays.isNotEmpty(notEmptyShortArray));
  final char[] emptyCharArray=new char[]{};
  final char[] notEmptyCharArray=new char[]{1};
  assertFalse(Arrays.isNotEmpty((char[])null));
  assertFalse(Arrays.isNotEmpty(emptyCharArray));
  assertTrue(Arrays.isNotEmpty(notEmptyCharArray));
  final byte[] emptyByteArray=new byte[]{};
  final byte[] notEmptyByteArray=new byte[]{1};
  assertFalse(Arrays.isNotEmpty((byte[])null));
  assertFalse(Arrays.isNotEmpty(emptyByteArray));
  assertTrue(Arrays.isNotEmpty(notEmptyByteArray));
  final double[] emptyDoubleArray=new double[]{};
  final double[] notEmptyDoubleArray=new double[]{1.0};
  assertFalse(Arrays.isNotEmpty((double[])null));
  assertFalse(Arrays.isNotEmpty(emptyDoubleArray));
  assertTrue(Arrays.isNotEmpty(notEmptyDoubleArray));
  final float[] emptyFloatArray=new float[]{};
  final float[] notEmptyFloatArray=new float[]{1.0F};
  assertFalse(Arrays.isNotEmpty((float[])null));
  assertFalse(Arrays.isNotEmpty(emptyFloatArray));
  assertTrue(Arrays.isNotEmpty(notEmptyFloatArray));
  final boolean[] emptyBooleanArray=new boolean[]{};
  final boolean[] notEmptyBooleanArray=new boolean[]{true};
  assertFalse(Arrays.isNotEmpty((boolean[])null));
  assertFalse(Arrays.isNotEmpty(emptyBooleanArray));
  assertTrue(Arrays.isNotEmpty(notEmptyBooleanArray));
}