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
commit 4c5952b6a40af0a638971df87fa579e48b4c052c Author: Shad Storhaug <[email protected]> AuthorDate: Sat Feb 20 21:38:30 2021 +0700 SWEEP: Renamed references from ThreadClass to ThreadJob --- src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs | 8 ++++---- src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs | 10 +++++----- src/Lucene.Net.Tests/Search/TestTimeLimitingCollector.cs | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs b/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs index 0bc7aff..62c4526 100644 --- a/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs +++ b/src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs @@ -472,7 +472,7 @@ namespace Lucene.Net.Store }); } - // private class ListAllThread : ThreadClass + // private class ListAllThread : ThreadJob // { // private readonly BaseDirectoryTestCase outerInstance; // private readonly Directory dir; @@ -516,7 +516,7 @@ namespace Lucene.Net.Store // } // } - // private class ListAllThread2 : ThreadClass + // private class ListAllThread2 : ThreadJob // { // private readonly BaseDirectoryTestCase outerInstance; // private readonly Directory dir; @@ -590,8 +590,8 @@ namespace Lucene.Net.Store // } // AtomicBoolean stop = new AtomicBoolean(); - // ThreadClass writer = new ListAllThread(this, dir, stop); - // ThreadClass reader = new ListAllThread2(this, dir, stop); + // ThreadJob writer = new ListAllThread(this, dir, stop); + // ThreadJob reader = new ListAllThread2(this, dir, stop); // reader.Start(); // writer.Start(); diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs index c6b3ca9..fbcec42 100644 --- a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs +++ b/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs @@ -1,4 +1,4 @@ -// LUCENENET NOTE: Clearly this test is not applicable to .NET, but just +// LUCENENET NOTE: Clearly this test is not applicable to .NET, but just // adding the file to the project for completedness. //using System; @@ -79,7 +79,7 @@ // AssumeFalse("does not support PreFlex, see LUCENE-3992", Codec.Default.Name.Equals("Lucene3x", StringComparison.Ordinal)); // // we are the fork, setup a crashing thread // int crashTime = TestUtil.NextInt(Random(), 3000, 4000); -// ThreadClass t = new ThreadAnonymousClass(this, crashTime); +// ThreadJob t = new ThreadAnonymousClass(this, crashTime); // t.Priority = ThreadPriority.Highest; // t.Start(); // // run the test until we crash. @@ -90,7 +90,7 @@ // } // } -// private class ThreadAnonymousClass : ThreadClass +// private class ThreadAnonymousClass : ThreadJob // { // private readonly TestIndexWriterOnJRECrash outerInstance; @@ -160,12 +160,12 @@ // { // public static Thread Start(InputStream from, OutputStream to) // { -// ThreadClass t = new ThreadAnonymousClass2(from, to); +// ThreadJob t = new ThreadAnonymousClass2(from, to); // t.Start(); // return t; // } -// private class ThreadAnonymousClass2 : ThreadClass +// private class ThreadAnonymousClass2 : ThreadJob // { // private InputStream From; // private OutputStream To; diff --git a/src/Lucene.Net.Tests/Search/TestTimeLimitingCollector.cs b/src/Lucene.Net.Tests/Search/TestTimeLimitingCollector.cs index f0127a3..ba019d7 100644 --- a/src/Lucene.Net.Tests/Search/TestTimeLimitingCollector.cs +++ b/src/Lucene.Net.Tests/Search/TestTimeLimitingCollector.cs @@ -325,7 +325,7 @@ namespace Lucene.Net.Search for (int i = 0; i < threadArray.Length; ++i) { int num = i; - threadArray[num] = new ThreadClassAnonymousClass(this, success, withTimeout, num); + threadArray[num] = new ThreadAnonymousClass(this, success, withTimeout, num); } for (int i = 0; i < threadArray.Length; ++i) { @@ -338,13 +338,13 @@ namespace Lucene.Net.Search assertEquals("some threads failed!", N_THREADS, success.Cardinality()); } - private class ThreadClassAnonymousClass : ThreadJob + private class ThreadAnonymousClass : ThreadJob { private readonly TestTimeLimitingCollector outerInstance; private readonly OpenBitSet success; private readonly bool withTimeout; private readonly int num; - public ThreadClassAnonymousClass(TestTimeLimitingCollector outerInstance, OpenBitSet success, bool withTimeout, int num) + public ThreadAnonymousClass(TestTimeLimitingCollector outerInstance, OpenBitSet success, bool withTimeout, int num) { this.outerInstance = outerInstance; this.success = success;
