Beispiel #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");
   }
 }
Beispiel #2
0
  void checkInvariants() {

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

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

        throw e;
      }
    }
  }