Skip to content

Commit

Permalink
Merge pull request #1464 from square/jw/warnings
Browse files Browse the repository at this point in the history
Clean up varargs warnings.
  • Loading branch information
JakeWharton authored Aug 1, 2016
2 parents 77ab1a0 + 03f83f5 commit c2ea47e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
import static com.squareup.picasso.TestUtils.mockRemoteViews;
import static com.squareup.picasso.TestUtils.mockTarget;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.fest.assertions.api.Assertions.fail;
import static org.junit.Assert.fail;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
Expand Down Expand Up @@ -633,7 +633,7 @@ public void intoTargetNoResizeWithCenterInsideOrCenterCropThrows() {

@Test public void nullAdditionalMemoryPolicy() {
try {
new RequestCreator().memoryPolicy(MemoryPolicy.NO_CACHE, null);
new RequestCreator().memoryPolicy(MemoryPolicy.NO_CACHE, (MemoryPolicy[]) null);
fail("Null additional memory policy should throw exception.");
} catch (IllegalArgumentException ignored) {
}
Expand All @@ -657,7 +657,7 @@ public void intoTargetNoResizeWithCenterInsideOrCenterCropThrows() {

@Test public void nullAdditionalNetworkPolicy() {
try {
new RequestCreator().networkPolicy(NetworkPolicy.NO_CACHE, null);
new RequestCreator().networkPolicy(NetworkPolicy.NO_CACHE, (NetworkPolicy[]) null);
fail("Null additional network policy should throw exception.");
} catch (IllegalArgumentException ignored) {
}
Expand Down

0 comments on commit c2ea47e

Please sign in to comment.