示例#1
0
        public override bool ConsistencyCheck(ReporterFactory reporterFactory)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final LuceneIndexConsistencyCheckVisitor visitor = reporterFactory.getClass(LuceneIndexConsistencyCheckVisitor.class);
            LuceneIndexConsistencyCheckVisitor visitor = reporterFactory.GetClass(typeof(LuceneIndexConsistencyCheckVisitor));
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final boolean isConsistent = !isDirty();
            bool isConsistent = !Dirty;

            if (!isConsistent)
            {
                visitor.IsInconsistent(Descriptor);
            }
            return(isConsistent);
        }
示例#2
0
 public override bool ConsistencyCheck(ReporterFactory reporterFactory)
 {
     return(ConsistencyCheck(reporterFactory.GetClass(typeof(GBPTreeConsistencyCheckVisitor))));
 }