You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/07/24 16:38:41 UTC
svn commit: r978878 -
/lucene/dev/branches/preflexfixes/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java
Author: rmuir
Date: Sat Jul 24 14:38:40 2010
New Revision: 978878
URL: http://svn.apache.org/viewvc?rev=978878&view=rev
Log:
clean up
Modified:
lucene/dev/branches/preflexfixes/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java
Modified: lucene/dev/branches/preflexfixes/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/preflexfixes/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java?rev=978878&r1=978877&r2=978878&view=diff
==============================================================================
--- lucene/dev/branches/preflexfixes/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java (original)
+++ lucene/dev/branches/preflexfixes/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java Sat Jul 24 14:38:40 2010
@@ -432,13 +432,9 @@ public class PreFlexFields extends Field
isNonBMPChar(prevTerm.bytes, newSuffixStart) &&
isHighBMPChar(scratchTerm.bytes, newSuffixStart)) {
- // Seek type 2 -- put U+FFFF at this position:
- // nocommit -- can we somehow use 0xff???
+ // Seek type 2 -- put 0xFF at this position:
scratchTerm.bytes[newSuffixStart] = (byte) 0xff;
- //scratchTerm.bytes[newSuffixStart] = (byte) 0xef;
- scratchTerm.bytes[newSuffixStart+1] = (byte) 0xbf;
- scratchTerm.bytes[newSuffixStart+2] = (byte) 0xbf;
- scratchTerm.length = newSuffixStart+3;
+ scratchTerm.length = newSuffixStart+1;
if (DEBUG_SURROGATES) {
System.out.println(" seek to term=" + UnicodeUtil.toHexString(scratchTerm.utf8ToString()) + " " + scratchTerm.toString());