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/26 11:12:22 UTC
[09/11] lucenenet git commit:
Lucene.Net.Core.Store.RateLimitedDirectoryWrapper: Commented check for null
UsageContext, since the value is non-nullable
Lucene.Net.Core.Store.RateLimitedDirectoryWrapper: Commented check for null UsageContext, since the value is non-nullable
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/57d0d278
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/57d0d278
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/57d0d278
Branch: refs/heads/api-work
Commit: 57d0d2782bc94449fadcd281268fe2af946437be
Parents: dbe66cc
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Jan 26 16:52:25 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Thu Jan 26 16:52:25 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Core/Store/RateLimitedDirectoryWrapper.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/57d0d278/src/Lucene.Net.Core/Store/RateLimitedDirectoryWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/RateLimitedDirectoryWrapper.cs b/src/Lucene.Net.Core/Store/RateLimitedDirectoryWrapper.cs
index d3fa8c0..6d651c2 100644
--- a/src/Lucene.Net.Core/Store/RateLimitedDirectoryWrapper.cs
+++ b/src/Lucene.Net.Core/Store/RateLimitedDirectoryWrapper.cs
@@ -89,13 +89,13 @@ namespace Lucene.Net.Store
/// if context is <code>null</code> </exception>
/// <exception cref="AlreadyClosedException"> if the <seealso cref="Directory"/> is already closed
/// @lucene.experimental </exception>
- public void SetMaxWriteMBPerSec(double? mbPerSec, IOContext.UsageContext context) // LUCENENET TODO: Can we get rid of the nullables?
+ public void SetMaxWriteMBPerSec(double? mbPerSec, IOContext.UsageContext context)
{
EnsureOpen();
- if (context == null)
- {
- throw new System.ArgumentException("Context must not be null");
- }
+ //if (context == null) // LUCENENET NOTE: enum values can never be null in .NET
+ //{
+ // throw new System.ArgumentException("Context must not be null");
+ //}
//int ord = context.ordinal();
RateLimiter limiter;
_contextRateLimiters.TryGetValue(context, out limiter);