Skip to content

Commit

Permalink
Remove unnecessary class cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Ke Li authored and cbuescher committed Jan 18, 2017
1 parent f153c84 commit 2a6c8cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public void writeTo(final StreamOutput out) throws IOException {
out.writeVInt(termStatistics.size());

for (ObjectObjectCursor<Term, TermStatistics> c : termStatistics()) {
Term term = (Term) c.key;
Term term = c.key;
out.writeString(term.field());
out.writeBytesRef(term.bytes());
TermStatistics stats = (TermStatistics) c.value;
TermStatistics stats = c.value;
out.writeBytesRef(stats.term());
out.writeVLong(stats.docFreq());
out.writeVLong(DfsSearchResult.addOne(stats.totalTermFreq()));
Expand Down

0 comments on commit 2a6c8cf

Please sign in to comment.