Beispiel #1
0
  void checkInvariants() {

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

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

        throw e;
      }
    }
  }