You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Uwe Schindler <uw...@thetaphi.de> on 2011/06/07 16:16:22 UTC

RE: svn commit: r1133021 - /lucene/dev/trunk/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java

Wuaaaah, what a leftover from earlier days! The generics policeman thanks for correcting that!

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
> Sent: Tuesday, June 07, 2011 4:14 PM
> To: commits@lucene.apache.org
> Subject: svn commit: r1133021 -
> /lucene/dev/trunk/lucene/contrib/highlighter/src/java/org/apache/lucene/
> search/highlight/TokenSources.java
> 
> Author: mikemccand
> Date: Tue Jun  7 14:13:48 2011
> New Revision: 1133021
> 
> URL: http://svn.apache.org/viewvc?rev=1133021&view=rev
> Log:
> fix redundant cast compilation warning
> 
> Modified:
> 
> lucene/dev/trunk/lucene/contrib/highlighter/src/java/org/apache/lucene/s
> earch/highlight/TokenSources.java
> 
> Modified:
> lucene/dev/trunk/lucene/contrib/highlighter/src/java/org/apache/lucene/s
> earch/highlight/TokenSources.java
> URL:
> http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/highlighter
> /src/java/org/apache/lucene/search/highlight/TokenSources.java?rev=1133
> 021&r1=1133020&r2=1133021&view=diff
> ==========================================================
> ====================
> ---
> lucene/dev/trunk/lucene/contrib/highlighter/src/java/org/apache/lucene/s
> earch/highlight/TokenSources.java (original)
> +++
> lucene/dev/trunk/lucene/contrib/highlighter/src/java/org/apache/lucene/s
> earch/highlight/TokenSources.java Tue Jun  7 14:13:48 2011
> @@ -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
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org