xxeol2 opened a new pull request, #648:
URL: https://github.com/apache/tomcat/pull/648

   This Pull Request aims to reduce code duplication in the `getSession` method 
of the `Request` class.
   The refactoring has been inspired by the format used in the `reset` method 
of `java.org.apache.catalina.connector.OutputBuffer`.
   
   The refactoring closely follows the structure and principles used in the 
`reset` method of `java.org.apache.catalina.connector.OutputBuffer`:
   ```java
   public void reset() {
        reset(false);
   }
   
   public void reset(boolean resetWriterStreamFlags) {
        clear(bb);
        clear(cb);
        bytesWritten = 0;
        charsWritten = 0;
        if (resetWriterStreamFlags) {
                if (conv != null) {
                        conv.recycle();
                }
                conv = null;
        }
        initial = true;
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to