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:
Michael McCandless 2009-08-07 16:48:09 +00:00
parent 0b6769aa11
commit ab0de2448a
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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;