Skip to content

Commit

Permalink
Disambiguate Collection.toArray() call so that the test passes in Jav…
Browse files Browse the repository at this point in the history
  • Loading branch information
ifigotin authored and cpovirk committed Sep 12, 2018
1 parent b03e282 commit b611718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void testKeySet_nullToArray() {
for (LoadingCache<Object, Object> cache : caches()) {
Set<Object> keys = cache.asMap().keySet();
try {
keys.toArray(null);
keys.toArray((Object[]) null);
fail();
} catch (NullPointerException expected) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void testKeySet_nullToArray() {
for (LoadingCache<Object, Object> cache : caches()) {
Set<Object> keys = cache.asMap().keySet();
try {
keys.toArray(null);
keys.toArray((Object[]) null);
fail();
} catch (NullPointerException expected) {
}
Expand Down

0 comments on commit b611718

Please sign in to comment.