docs: @Override
      public void setWriteStateToDone() {
          synchronized (this) {
              currentState = currentState & WRITE_DONE_CLEAR_OUT;
              if (closeWaiting) {
                  this.notify();
              }
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "setWriteStateToDone");
              }
          }
      }