You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/31 17:56:04 UTC
[31/50] [abbrv] lucenenet git commit:
Lucene.Net.Facet.Range.LongRangeCounter.InclusiveRange refactor: changed
public fields to auto-implemented properties
Lucene.Net.Facet.Range.LongRangeCounter.InclusiveRange refactor: changed public fields to auto-implemented properties
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e4da8d2e
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e4da8d2e
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e4da8d2e
Branch: refs/heads/api-work
Commit: e4da8d2ecf7eddd81e91c9cb84f3bf885c28b37a
Parents: 71adfdb
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Jan 31 16:09:36 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Jan 31 16:09:36 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Facet/Range/LongRangeCounter.cs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4da8d2e/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/LongRangeCounter.cs b/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
index a871e1e..b6581b3 100644
--- a/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
+++ b/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
@@ -141,7 +141,7 @@ namespace Lucene.Net.Facet.Range
boundaries = new long[elementaryIntervals.Count];
for (int i = 0; i < boundaries.Length; i++)
{
- boundaries[i] = elementaryIntervals[i].end;
+ boundaries[i] = elementaryIntervals[i].End;
}
leafCounts = new int[boundaries.Length];
@@ -254,7 +254,7 @@ namespace Lucene.Net.Facet.Range
{
// leaf
InclusiveRange range = elementaryIntervals[start];
- return new LongRangeNode(range.start, range.end, null, null, start);
+ return new LongRangeNode(range.Start, range.End, null, null, start);
}
else
{
@@ -267,19 +267,19 @@ namespace Lucene.Net.Facet.Range
private sealed class InclusiveRange
{
- public readonly long start;
- public readonly long end;
+ public long Start { get; private set; }
+ public long End { get; private set; }
public InclusiveRange(long start, long end)
{
Debug.Assert(end >= start);
- this.start = start;
- this.end = end;
+ this.Start = start;
+ this.End = end;
}
public override string ToString()
{
- return start + " to " + end;
+ return Start + " to " + End;
}
}