Skip to content

Commit 0fd3c90

Browse files
committed
Fix private field names linter failure
1 parent df5c9a6 commit 0fd3c90

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/PatternParser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,18 +369,18 @@ protected static string GetInterletterValues(string pat)
369369
/// </summary>
370370
internal class DtdResolver : XmlUrlResolver
371371
{
372-
internal const string DtdFilename = "hyphenation.dtd";
372+
internal const string DTD_FILENAME = "hyphenation.dtd";
373373

374374
public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
375375
{
376-
if (DtdFilename.Equals(absoluteUri?.Segments.LastOrDefault(), StringComparison.Ordinal))
376+
if (DTD_FILENAME.Equals(absoluteUri?.Segments.LastOrDefault(), StringComparison.Ordinal))
377377
{
378-
return typeof(PatternParser).FindAndGetManifestResourceStream(DtdFilename);
378+
return typeof(PatternParser).FindAndGetManifestResourceStream(DTD_FILENAME);
379379
}
380380

381381
// Only the embedded hyphenation.dtd is a valid external reference. Reject anything
382382
// else rather than resolving it from the file system or network.
383-
throw new XmlException($"Unexpected external reference in hyphenation data: '{absoluteUri}'. Only '{DtdFilename}' may be referenced.");
383+
throw new XmlException($"Unexpected external reference in hyphenation data: '{absoluteUri}'. Only '{DTD_FILENAME}' may be referenced.");
384384
}
385385
}
386386

0 commit comments

Comments
 (0)