Skip to content

Commit 71836b2

Browse files
paulirwinclaude
andcommitted
Rename private static field to satisfy TestApiConsistency
TestApiConsistency.TestPrivateFieldNames (run in the _J-S test shard) scans the whole Lucene.Net assembly and requires private fields to be camelCase (optionally _-prefixed) or ALL_CAPS. The new ReflectionTypeExtensions.LuceneNetNamespaceRegex was PascalCase and failed that check. Rename it to luceneNetNamespaceRegex (camelCase), matching the sibling packageMappingCache field. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d339689 commit 71836b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Lucene.Net/Support/Reflection/ReflectionTypeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Lucene.Net.Reflection
3030
[NoLuceneEquivalent]
3131
public static class ReflectionTypeExtensions
3232
{
33-
private static readonly Regex LuceneNetNamespaceRegex = new("^Lucene.Net.", RegexOptions.Compiled);
33+
private static readonly Regex luceneNetNamespaceRegex = new("^Lucene.Net.", RegexOptions.Compiled);
3434

3535
/// <summary>
3636
/// Gets the <see cref="LuceneTypeInfo"/> for the specified type.
@@ -100,7 +100,7 @@ public static class ReflectionTypeExtensions
100100
if (packageName == null)
101101
{
102102
// assume all lower-case, any casing will have to be mapped manually
103-
packageName = LuceneNetNamespaceRegex.Replace(type.Namespace, "org.apache.lucene.").ToLowerInvariant();
103+
packageName = luceneNetNamespaceRegex.Replace(type.Namespace, "org.apache.lucene.").ToLowerInvariant();
104104
}
105105

106106
var packageNameParts = packageName.Split('.');

0 commit comments

Comments
 (0)