lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r900193 - /lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java
Date Sun, 17 Jan 2010 18:55:55 GMT
Author: rmuir
Date: Sun Jan 17 18:55:54 2010
New Revision: 900193

URL: http://svn.apache.org/viewvc?rev=900193&view=rev
Log:
enable this assertion temporarily at least

Modified:
    lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java

Modified: lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java?rev=900193&r1=900192&r2=900193&view=diff
==============================================================================
--- lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java (original)
+++ lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java Sun Jan 17
18:55:54 2010
@@ -52,7 +52,8 @@
    * unpaired surrogates or U+FFFF.
    */
   public void copy(String text) {
-    // nocommit -- assert text has no unpaired surrogates??
+    // nocommit -- remove this paranoia
+    assert UnicodeUtil.validUTF16String(text);
     try {
       bytes = text.getBytes("UTF-8");
     } catch (UnsupportedEncodingException uee) {



Mime
View raw message