diff --git a/src/Lucene.Net/Index/IndexFileDeleter.cs b/src/Lucene.Net/Index/IndexFileDeleter.cs index fec0602948..cd24cbc954 100644 --- a/src/Lucene.Net/Index/IndexFileDeleter.cs +++ b/src/Lucene.Net/Index/IndexFileDeleter.cs @@ -113,8 +113,11 @@ internal sealed class IndexFileDeleter : IDisposable /// Change to true to see details of reference counts when /// infoStream is enabled /// + /// + /// LUCENENET specific - was VERBOSE_REF_COUNTS in Java. + /// // LUCENENET specific - changed from a mutable static field to a property - public static bool VERBOSE_REF_COUNTS { get; set; } = false; + public static bool VerboseRefCounts { get; set; } = false; // Used only for assert private readonly IndexWriter writer; @@ -568,7 +571,7 @@ internal void IncRef(string fileName) RefCount rc = GetRefCount(fileName); if (infoStream.IsEnabled("IFD")) { - if (VERBOSE_REF_COUNTS) + if (VerboseRefCounts) { infoStream.Message("IFD", " IncRef \"" + fileName + "\": pre-incr count is " + rc.count); } @@ -591,7 +594,7 @@ internal void DecRef(string fileName) RefCount rc = GetRefCount(fileName); if (infoStream.IsEnabled("IFD")) { - if (VERBOSE_REF_COUNTS) + if (VerboseRefCounts) { infoStream.Message("IFD", " DecRef \"" + fileName + "\": pre-decr count is " + rc.count); }