You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by rm...@apache.org on 2010/01/17 19:55:55 UTC
svn commit: r900193 -
/lucene/java/branches/flex_1458/src/java/org/apache/lucene/util/BytesRef.java
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) {