Skip to content

Commit

Permalink
Remove unnecessary casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
motlin committed Nov 9, 2018
1 parent 920f021 commit f12c838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -1429,7 +1429,7 @@ public boolean trimToSize()
}
else if (cur != null)
{
this.addForTrim((T) cur, j, mask);
this.addForTrim(cur, j, mask);
}
}
return true;
Expand Down
Expand Up @@ -1451,10 +1451,10 @@ public void zipWithIndex()

Assert.assertEquals(
map.toSet(),
pairs.collect((Function<Pair<String, ?>, String>) Pair::getOne).toSet());
pairs.collect(Pair::getOne).toSet());
Assert.assertEquals(
Interval.zeroTo(map.size() - 1).toSet(),
pairs.collect((Function<Pair<?, Integer>, Integer>) Pair::getTwo, UnifiedSet.newSet()));
pairs.collect(Pair::getTwo, UnifiedSet.newSet()));

Assert.assertEquals(
map.zipWithIndex().toSet(),
Expand Down

0 comments on commit f12c838

Please sign in to comment.