lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: svn commit: r940743 - in /lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton: Automaton.java BasicOperations.java
Date Tue, 04 May 2010 08:55:06 GMT
Ugh, thanks for fixing this Uwe!  I will fix my env to go back to 1.5, again :)

Mike

On Tue, May 4, 2010 at 2:35 AM,  <uschindler@apache.org> wrote:
> Author: uschindler
> Date: Tue May  4 06:35:52 2010
> New Revision: 940743
>
> URL: http://svn.apache.org/viewvc?rev=940743&view=rev
> Log:
> LUCENE-2265: Fix Java 5 compilation -- Generics-Police and Java-5-Police is angry! :-)
>
> Modified:
>    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/Automaton.java
>    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/BasicOperations.java
>
> Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/Automaton.java
> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/Automaton.java?rev=940743&r1=940742&r2=940743&view=diff
> ==============================================================================
> --- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/Automaton.java
(original)
> +++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/Automaton.java
Tue May  4 06:35:52 2010
> @@ -425,7 +425,7 @@ public class Automaton implements Serial
>       }
>     }
>     // map<state, set<state>>
> -    Set<State> map[] = new Set[states.length];
> +    @SuppressWarnings("unchecked") Set<State> map[] = new Set[states.length];
>     for (int i = 0; i < map.length; i++)
>       map[i] = new HashSet<State>();
>     for (State s : states) {
>
> Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/BasicOperations.java
> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/BasicOperations.java?rev=940743&r1=940742&r2=940743&view=diff
> ==============================================================================
> --- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/BasicOperations.java
(original)
> +++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/BasicOperations.java
Tue May  4 06:35:52 2010
> @@ -914,7 +914,7 @@ final public class BasicOperations {
>       // Breadth-first search, from accept states,
>       // backwards:
>       while(!q.isEmpty()) {
> -        final State s = q.pop();
> +        final State s = q.removeFirst();
>         List<ArrivingTransition> arriving = allArriving.get(s);
>         if (arriving != null) {
>           for(ArrivingTransition at : arriving) {
>
>
>

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


Mime
View raw message