Esempio n. 1
0
 void debug() {
   // logger.debug ("Who is calling this", new Throwable ());
   if (logger.isDebugEnabled()) {
     logger.debug("Starting");
   }
   debug("  ");
   if (logger.isDebugEnabled()) {
     logger.debug("Ending");
   }
 }
Esempio n. 2
0
  void checkInvariants() {

    if (parent != null) {
      checkWholeTree();
    } else {
      try {
        if (logger.isDebugEnabled()) {
          debug();
        }

        checkInvariantsImpl();
      } catch (IllegalStateException e) {
        if (logger.isDebugEnabled()) {
          debug();
        }

        throw e;
      }
    }
  }