This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new a7ee3b2 Lucene.Net.Tests: Removed calls to obsolete Counter.Get()
method (value is now implicit)
a7ee3b2 is described below
commit a7ee3b2d19bbe9cde5e1b7a98037a2c9abfb2497
Author: Shad Storhaug <[email protected]>
AuthorDate: Wed Oct 14 09:26:31 2020 +0700
Lucene.Net.Tests: Removed calls to obsolete Counter.Get() method (value is
now implicit)
---
src/Lucene.Net.Tests/Index/TestIntBlockPool.cs | 8 ++++----
src/Lucene.Net.Tests/Util/TestByteBlockPool.cs | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/Lucene.Net.Tests/Index/TestIntBlockPool.cs
b/src/Lucene.Net.Tests/Index/TestIntBlockPool.cs
index b631280..8767e8f 100644
--- a/src/Lucene.Net.Tests/Index/TestIntBlockPool.cs
+++ b/src/Lucene.Net.Tests/Index/TestIntBlockPool.cs
@@ -59,12 +59,12 @@ namespace Lucene.Net.Index
if (Random.NextBoolean())
{
pool.Reset(true, false);
- Assert.AreEqual(0, bytesUsed.Get());
+ Assert.AreEqual(0, bytesUsed);
}
else
{
pool.Reset(true, true);
- Assert.AreEqual(Int32BlockPool.INT32_BLOCK_SIZE *
RamUsageEstimator.NUM_BYTES_INT32, bytesUsed.Get());
+ Assert.AreEqual(Int32BlockPool.INT32_BLOCK_SIZE *
RamUsageEstimator.NUM_BYTES_INT32, bytesUsed);
}
}
}
@@ -116,12 +116,12 @@ namespace Lucene.Net.Index
if (Random.NextBoolean())
{
pool.Reset(true, false);
- Assert.AreEqual(0, bytesUsed.Get());
+ Assert.AreEqual(0, bytesUsed);
}
else
{
pool.Reset(true, true);
- Assert.AreEqual(Int32BlockPool.INT32_BLOCK_SIZE *
RamUsageEstimator.NUM_BYTES_INT32, bytesUsed.Get());
+ Assert.AreEqual(Int32BlockPool.INT32_BLOCK_SIZE *
RamUsageEstimator.NUM_BYTES_INT32, bytesUsed);
}
}
}
diff --git a/src/Lucene.Net.Tests/Util/TestByteBlockPool.cs
b/src/Lucene.Net.Tests/Util/TestByteBlockPool.cs
index ce1b1df..2bfb7e1 100644
--- a/src/Lucene.Net.Tests/Util/TestByteBlockPool.cs
+++ b/src/Lucene.Net.Tests/Util/TestByteBlockPool.cs
@@ -57,11 +57,11 @@ namespace Lucene.Net.Util
pool.Reset(Random.NextBoolean(), reuseFirst);
if (reuseFirst)
{
- Assert.AreEqual(ByteBlockPool.BYTE_BLOCK_SIZE,
bytesUsed.Get());
+ Assert.AreEqual(ByteBlockPool.BYTE_BLOCK_SIZE, bytesUsed);
}
else
{
- Assert.AreEqual(0, bytesUsed.Get());
+ Assert.AreEqual(0, bytesUsed);
pool.NextBuffer(); // prepare for next iter
}
}