Skip to content

Commit

Permalink
Use GetType instead of typeof for resource loader
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Nov 11, 2024
1 parent 9ee498d commit 7d62449
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public virtual void TestDefaults()
[Test]
public void TestIgnoreCase()
{
IResourceLoader loader = new ClasspathResourceLoader(typeof(TestAnalyzers));
IResourceLoader loader = new ClasspathResourceLoader(GetType());
CommonGramsFilterFactory factory =
(CommonGramsFilterFactory)
TokenFilterFactory("CommonGrams", TEST_VERSION_CURRENT, loader, "ignoreCase", "true");
Expand Down

0 comments on commit 7d62449

Please sign in to comment.