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

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