mirror of https://github.com/apache/lucene.git
fix smartcn to be JDK 1.4 only
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@802085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b6769aa11
commit
ab0de2448a
|
@ -91,7 +91,9 @@ public class SegToken {
|
|||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + Arrays.hashCode(charArray);
|
||||
for(int i=0;i<charArray.length;i++) {
|
||||
result = prime * result + charArray[i];
|
||||
}
|
||||
result = prime * result + endOffset;
|
||||
result = prime * result + index;
|
||||
result = prime * result + startOffset;
|
||||
|
|
|
@ -51,7 +51,9 @@ class SegTokenPair {
|
|||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + Arrays.hashCode(charArray);
|
||||
for(int i=0;i<charArray.length;i++) {
|
||||
result = prime * result + charArray[i];
|
||||
}
|
||||
result = prime * result + from;
|
||||
result = prime * result + to;
|
||||
long temp;
|
||||
|
|
Loading…
Reference in New Issue