code: public void setResult(Object result) {
          this.result = result;
          if (this.status == STATUS_PENDING || this.status == STATUS_SUCCESS_NULL || this.status == STATUS_SUCCESS_RESULT) {
              setStatus(result == null ? STATUS_SUCCESS_NULL : STATUS_SUCCESS_RESULT);
          }
      }
docs: {@inheritDoc}