public synchronized void setName(String paramName){ if(this.name!=paramName){ this.name =paramName; this.informClient(); Channel tmpChannel=this.getCurrentChannel(); if(tmpChannel!=null){ tmpChannel.informCurrentUsers(); } }
public synchronized void setName(String paramName) { if (paramName != null) { if (this.name != paramName) { this.name = paramName; this.informClient(); Channel tmpChannel = this.getCurrentChannel(); if (tmpChannel != null) { tmpChannel.informCurrentUsers(); } } }
    public synchronized void setName(String paramName){      if(this.name!=paramName){       this.name =paramName;       this.informClient();       Channel tmpChannel=this.getCurrentChannel();       if(tmpChannel!=null){         tmpChannel.informCurrentUsers();       }      }    }