lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1003658 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/State.java
Date Fri, 01 Oct 2010 21:40:34 GMT
Author: rmuir
Date: Fri Oct  1 21:40:33 2010
New Revision: 1003658

URL: http://svn.apache.org/viewvc?rev=1003658&view=rev
Log:
make tests deterministic

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/State.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/State.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/State.java?rev=1003658&r1=1003657&r2=1003658&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/State.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/automaton/State.java Fri Oct 
1 21:40:33 2010
@@ -269,4 +269,9 @@ public class State implements Serializab
   public int compareTo(State s) {
     return s.id - id;
   }
+
+  @Override
+  public int hashCode() {
+    return id;
+  }  
 }



Mime
View raw message