Apache Solr open-source search software
fix redundant cast compilation warning
Michael McCandless3d9e264b5670
diff --git a/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java b/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.javaindex f1392b4cb1a..1043b7cb292 100644--- a/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java+++ b/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java@@ -165,7 +165,7 @@ public class TokenSources {this.tokens = tokens;termAtt = addAttribute(CharTermAttribute.class);offsetAtt = addAttribute(OffsetAttribute.class);- posincAtt = (PositionIncrementAttribute) addAttribute(PositionIncrementAttribute.class);+ posincAtt = addAttribute(PositionIncrementAttribute.class);}@Override