lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [47/50] [abbrv] lucenenet git commit: Fixed bug in TestFramework.Analysis.MockUTF16TermAttributeImpl that was causing the attribute to be initialized with a set of bytes representing the encoding name rather than bytes representing the value of the attri
Date Sun, 02 Oct 2016 14:36:05 GMT
Fixed bug in TestFramework.Analysis.MockUTF16TermAttributeImpl that was causing the attribute
to be initialized with a set of bytes representing the encoding name rather than bytes representing
the value of the attribute.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e0146cbd
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e0146cbd
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e0146cbd

Branch: refs/heads/master
Commit: e0146cbd08f42fa6e43a940bd58340de09f91a00
Parents: 3fa9a78
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Sep 22 10:06:56 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Oct 2 17:45:12 2016 +0700

----------------------------------------------------------------------
 .../Analysis/MockUTF16TermAttributeImpl.cs                         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e0146cbd/src/Lucene.Net.TestFramework/Analysis/MockUTF16TermAttributeImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/MockUTF16TermAttributeImpl.cs b/src/Lucene.Net.TestFramework/Analysis/MockUTF16TermAttributeImpl.cs
index 1f637eb..25ec34b 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockUTF16TermAttributeImpl.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockUTF16TermAttributeImpl.cs
@@ -35,7 +35,7 @@ namespace Lucene.Net.Analysis
         public override void FillBytesRef()
         {
             BytesRef bytes = BytesRef;
-            var utf16 = Charset.GetBytes(Charset.ToString());
+            var utf16 = Charset.GetBytes(this.ToString());
             bytes.Bytes = utf16;
             bytes.Offset = 0;
             bytes.Length = utf16.Length;


Mime
View raw message