lm = LogManager.getLogManager();  if (this == lm.rootLogger)
if (this == root)
  public synchronized void setParent(Logger parent)  {    LogManager lm;    /* Throw a new NullPointerException if parent is null. */    parent.getClass();    lm = LogManager.getLogManager();    if (this == lm.rootLogger)        throw new IllegalArgumentException(          "only the root logger can have a null parent");    /* An application is allowed to control an anonymous logger     * without having the permission to control the logging     * infrastructure.     */    if (!anonymous)      LogManager.getLogManager().checkAccess();    this.parent = parent;  }