Skip to content

Commit

Permalink
GEODE-2762: fix varargs warnings
Browse files Browse the repository at this point in the history
* fix varargs compilation warnings
* remove unused import
  • Loading branch information
kirklund committed Apr 14, 2017
1 parent 3b783ed commit d939ceb
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.junit.experimental.categories.Category;
import org.junit.rules.TestName;

import java.util.Arrays;
import java.util.List;

import org.apache.geode.test.junit.categories.UnitTest;
Expand Down Expand Up @@ -96,12 +95,14 @@ public void getFirst_oneElement_returnsFirstElement() {

@Test
public void getFirst_null_returnsNull() {
assertThat(getFirst((Object[]) null)).isNull();
Object nullObject = null;
assertThat(getFirst(nullObject)).isNull();
}

@Test
public void getFirst_empty_returnsNull() {
assertThat(getFirst(new Object[0])).isNull();
Object[] emptyArray = new Object[0];
assertThat((Object[]) getFirst(emptyArray)).isNull();
}

@Test
Expand Down

0 comments on commit d939ceb

Please sign in to comment.