File tree Expand file tree Collapse file tree
src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments