Repository: lucenenet Updated Branches: refs/heads/api-work 99e4ef47a -> 5e549b769
Lucene.Net.Analysis.Common.Analysis.In.IndicNormalizer: Replaced .NET BitArray with OpenBitSet (shot in the dark, but perhaps this has something to do with the random failures because of a difference in storage). Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/5e549b76 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/5e549b76 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/5e549b76 Branch: refs/heads/api-work Commit: 5e549b769e85a94b1328e62ed06e121f167baa51 Parents: 99e4ef4 Author: Shad Storhaug <[email protected]> Authored: Fri Mar 24 19:20:07 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Fri Mar 24 19:20:07 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5e549b76/src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs b/src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs index a7b14fd..8dd62ce 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/In/IndicNormalizer.cs @@ -1,4 +1,5 @@ using Lucene.Net.Analysis.Util; +using Lucene.Net.Util; using System; using System.Collections; using System.Collections.Generic; @@ -43,7 +44,7 @@ namespace Lucene.Net.Analysis.In { internal readonly UnicodeBlock flag; internal readonly int @base; - internal BitArray decompMask; + internal OpenBitSet decompMask; internal ScriptData(UnicodeBlock flag, int @base) { @@ -231,14 +232,14 @@ namespace Lucene.Net.Analysis.In foreach (ScriptData sd in scripts.Values) { - sd.decompMask = new BitArray(0x7F); + sd.decompMask = new OpenBitSet(0x7F); for (int i = 0; i < decompositions.Length; i++) { int ch = decompositions[i][0]; int flags = decompositions[i][4]; if ((flags & (int)sd.flag) != 0) { - sd.decompMask.Set(ch, true); + sd.decompMask.Set(ch); } } }
