From ab0de2448a1ff461c6cd1b42f0a871adf3c37d71 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 7 Aug 2009 16:48:09 +0000 Subject: [PATCH] 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 --- .../org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java | 4 +++- .../apache/lucene/analysis/cn/smart/hhmm/SegTokenPair.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java index 76fd44919fb..e6ccfdef988 100644 --- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java +++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java @@ -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