hedin (hedin) wrote in code_wtf,
hedin
hedin
code_wtf

Бессметрная классика снова и снова.

  public boolean isRoot() {
      return (isMaster() && !isSlave()) || (!isMaster() && !isSlave());
  }
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 17 comments