You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2012/01/06 03:49:00 UTC

svn commit: r1227945 - in /lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src: java/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.java resources/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.dat

Author: uschindler
Date: Fri Jan  6 02:48:59 2012
New Revision: 1227945

URL: http://svn.apache.org/viewvc?rev=1227945&view=rev
Log:
LUCENE-3305: Make hexdump better readable by aligning the TAIL_INDEX (if bit 30 is set, we are in tail)

Modified:
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.java
    lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/resources/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.dat

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.java?rev=1227945&r1=1227944&r2=1227945&view=diff
==============================================================================
--- lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.java (original)
+++ lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/java/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.java Fri Jan  6 02:48:59 2012
@@ -55,7 +55,7 @@ public final class DoubleArrayTrie {
   
   private static final int TAIL_INITIAL_SIZE = 16384;
   
-  private static final int TAIL_OFFSET = Integer.MAX_VALUE >> 1;
+  private static final int TAIL_OFFSET = 1 << 30;
   
   // the underlying raw byte buffers
   private ByteBuffer baseByteBuffer, checkByteBuffer, tailByteBuffer;

Modified: lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/resources/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.dat
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3305/modules/analysis/kuromoji/src/resources/org/apache/lucene/analysis/kuromoji/trie/DoubleArrayTrie.dat?rev=1227945&r1=1227944&r2=1227945&view=diff
==============================================================================
Binary files - no diff available.